20. Structured Markup Processing ToolsΒΆ
Python supports a variety of modules to work with various forms of structured data markup. This includes modules to work with the Standard Generalized Markup Language (SGML) and the Hypertext Markup Language (HTML), and several interfaces for working with the Extensible Markup Language (XML).
- 20.1.
htmlβ HyperText Markup Language support - 20.2.
html.parserβ Simple HTML and XHTML parser - 20.3.
html.entitiesβ Definitions of HTML general entities - 20.4. XML Processing Modules
- 20.5.
xml.etree.ElementTreeβ The ElementTree XML API - 20.6.
xml.domβ The Document Object Model API- 20.6.1. Module Contents
- 20.6.2. Objects in the DOM
- 20.6.2.1. DOMImplementation Objects
- 20.6.2.2. Node Objects
- 20.6.2.3. NodeList Objects
- 20.6.2.4. DocumentType Objects
- 20.6.2.5. Document Objects
- 20.6.2.6. Element Objects
- 20.6.2.7. Attr Objects
- 20.6.2.8. NamedNodeMap Objects
- 20.6.2.9. Comment Objects
- 20.6.2.10. Text and CDATASection Objects
- 20.6.2.11. ProcessingInstruction Objects
- 20.6.2.12. Exceptions
- 20.6.3. Conformance
- 20.7.
xml.dom.minidomβ Minimal DOM implementation - 20.8.
xml.dom.pulldomβ Support for building partial DOM trees - 20.9.
xml.saxβ Support for SAX2 parsers - 20.10.
xml.sax.handlerβ Base classes for SAX handlers - 20.11.
xml.sax.saxutilsβ SAX Utilities - 20.12.
xml.sax.xmlreaderβ Interface for XML parsers - 20.13.
xml.parsers.expatβ Fast XML parsing using Expat
