blob: 21b2e2382fa7afd85ea5dc2763c582ea6e8971cc [file] [log] [blame]
Georg Brandlfe7b00f2012-10-06 13:49:34 +02001.. _xml:
2
3XML Processing Modules
4======================
5
6Python's interfaces for processing XML are grouped in the ``xml`` package.
7
8It is important to note that modules in the :mod:`xml` package require that
9there be at least one SAX-compliant XML parser available. The Expat parser is
10included with Python, so the :mod:`xml.parsers.expat` module will always be
11available.
12
13The documentation for the :mod:`xml.dom` and :mod:`xml.sax` packages are the
14definition of the Python bindings for the DOM and SAX interfaces.
15
16The 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