Structured Markup Articles

html — HyperText Markup Language support

Source code: Lib/html/__init__.py

html.entities — Definitions of HTML general entities

Source code: Lib/html/entities.py

html.parser — Simple HTML and XHTML parser

Source code: Lib/html/parser.py

XML Processing Modules

Source code: Lib/xml/

xml.dom — The Document Object Model API

Source code: Lib/xml/dom/__init__.py

xml.dom.minidom — Minimal DOM implementation

Source code: Lib/xml/dom/minidom.py

xml.dom.pulldom — Support for building partial DOM trees

Source code: Lib/xml/dom/pulldom.py

xml.etree.ElementTree — The ElementTree XML API

Source code: Lib/xml/etree/ElementTree.py

xml.parsers.expat — Fast XML parsing using Expat

The xml.parsers.expat module is a Python interface to the Expat non-validating XML parser. The module provides a single extension type, xmlparser, that represents the current state of an XML parser. After an xmlparser object has been created, various attributes of the object can be set to handler functions. When an XML document is then fed to the parser, the handler functions are called for the character data and markup in the XML document.

xml.sax — Support for SAX2 parsers

Source code: Lib/xml/sax/__init__.py

xml.sax.handler — Base classes for SAX handlers

Source code: Lib/xml/sax/handler.py

xml.sax.saxutils — SAX Utilities

Source code: Lib/xml/sax/saxutils.py

xml.sax.xmlreader — Interface for XML parsers

Source code: Lib/xml/sax/xmlreader.py