Index Ai Academy
Glossary · Phase 7 · Software engineering

ElementTree

Also written: xml.etree.ElementTree

Python's standard-library module for reading and writing XML as a tree of elements, each with a tag, attributes and text.

Try it now

Short facts about an element go in attributes; content, and anything that repeats, goes in child elements.

Learn it properly

Reading and writing XML · ElementTree, attributes and text, namespaces, building XML safely, and untrusted input. About 35 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write