8.13 xml.etree.ElementTree -- The ElementTree XML API

New in version 2.5.

The Element type is a flexible container object, designed to store hierarchical data structures in memory. The type can be described as a cross between a list and a dictionary.

Each element has a number of properties associated with it:

To create an element instance, use the Element or SubElement factory functions.

The ElementTree class can be used to wrap an element structure, and convert it from and to XML.

A C implementation of this API is available as xml.etree.cElementTree.



Subsections

Python Library Reference
Previous: Up: 8. Structured Markup Processing Next:

Release 2.5.2, documentation updated on 21st February, 2008.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /