xml.etree — The ElementTree API for XML

2.5 新版功能.

The ElementTree package is a simple, efficient, and quite popular library for XML manipulation in Python. The xml.etree package contains the most common components from the ElementTree API library. In the current release, this package contains the ElementTree, ElementPath, and ElementInclude modules from the full ElementTree distribution.

参见

ElementTree Overview
The home page for ElementTree. This includes links to additional documentation, alternative implementations, and other add-ons.