Georg Brandl | fe7b00f | 2012-10-06 13:49:34 +0200 | [diff] [blame^] | 1 | .. _xml: |
| 2 | |
| 3 | XML Processing Modules |
| 4 | ====================== |
| 5 | |
| 6 | Python's interfaces for processing XML are grouped in the ``xml`` package. |
| 7 | |
| 8 | It is important to note that modules in the :mod:`xml` package require that |
| 9 | there be at least one SAX-compliant XML parser available. The Expat parser is |
| 10 | included with Python, so the :mod:`xml.parsers.expat` module will always be |
| 11 | available. |
| 12 | |
| 13 | The documentation for the :mod:`xml.dom` and :mod:`xml.sax` packages are the |
| 14 | definition of the Python bindings for the DOM and SAX interfaces. |
| 15 | |
| 16 | The XML handling submodules are: |
| 17 | |
| 18 | * :mod:`xml.etree.ElementTree`: the ElementTree API, a simple and lightweight |
| 19 | |
| 20 | .. |
| 21 | |
| 22 | * :mod:`xml.dom`: the DOM API definition |
| 23 | * :mod:`xml.dom.minidom`: a lightweight DOM implementation |
| 24 | * :mod:`xml.dom.pulldom`: support for building partial DOM trees |
| 25 | |
| 26 | .. |
| 27 | |
| 28 | * :mod:`xml.sax`: SAX2 base classes and convenience functions |
| 29 | * :mod:`xml.parsers.expat`: the Expat parser binding |