xml.etree.ElementTree

Stdlib — SerializationPython 2.0+Intermediate

Lightweight XML parsing and creation

Quick Info

Documentation
Official Docs
Python Version
2.0+
Dependencies
None — Python Standard Library
Install
Included with Python

Learn by Difficulty

Quick Example

python
import xml.etree.ElementTree

print(f"Module: xml.etree.ElementTree")
print(f"Contents: {dir(xml.etree.ElementTree)[:10]}")

The xml.etree.ElementTree module is part of Python's standard library. Lightweight XML parsing and creation.

Try in Playground

Tags

stdlibserializationdata-format