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.
htmlHyperText Markup Language support - 20.2.
html.parserSimple HTML and XHTML parser - 20.3.
html.entitiesDefinitions of HTML general entities - 20.4. XML Processing Modules
- 20.5.
xml.etree.ElementTreeThe ElementTree XML API - 20.6.
xml.domThe 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.minidomMinimal DOM implementation - 20.8.
xml.dom.pulldomSupport for building partial DOM trees - 20.9.
xml.saxSupport for SAX2 parsers - 20.10.
xml.sax.handlerBase classes for SAX handlers - 20.11.
xml.sax.saxutilsSAX Utilities - 20.12.
xml.sax.xmlreaderInterface for XML parsers - 20.13.
xml.parsers.expatFast XML parsing using Expat