| 1 |
.. _markup: |
| 2 |
|
| 3 |
********************************** |
| 4 |
Structured Markup Processing Tools |
| 5 |
********************************** |
| 6 |
|
| 7 |
Python supports a variety of modules to work with various forms of structured |
| 8 |
data markup. This includes modules to work with the Standard Generalized Markup |
| 9 |
Language (SGML) and the Hypertext Markup Language (HTML), and several interfaces |
| 10 |
for working with the Extensible Markup Language (XML). |
| 11 |
|
| 12 |
It is important to note that modules in the :mod:`xml` package require that |
| 13 |
there be at least one SAX-compliant XML parser available. Starting with Python |
| 14 |
2.3, the Expat parser is included with Python, so the :mod:`xml.parsers.expat` |
| 15 |
module will always be available. You may still want to be aware of the `PyXML |
| 16 |
add-on package <http://pyxml.sourceforge.net/>`_; that package provides an |
| 17 |
extended set of XML libraries for Python. |
| 18 |
|
| 19 |
The documentation for the :mod:`xml.dom` and :mod:`xml.sax` packages are the |
| 20 |
definition of the Python bindings for the DOM and SAX interfaces. |
| 21 |
|
| 22 |
|
| 23 |
.. toctree:: |
| 24 |
|
| 25 |
htmlparser.rst |
| 26 |
sgmllib.rst |
| 27 |
htmllib.rst |
| 28 |
xml.rst |
| 29 |
xml.etree.elementtree.rst |
| 30 |
xml.dom.rst |
| 31 |
xml.dom.minidom.rst |
| 32 |
xml.dom.pulldom.rst |
| 33 |
xml.sax.rst |
| 34 |
xml.sax.handler.rst |
| 35 |
xml.sax.utils.rst |
| 36 |
xml.sax.reader.rst |
| 37 |
pyexpat.rst |