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 vulnerabilities
- 20.6. xml.etree.ElementTree — The ElementTree XML API
- 20.7. xml.dom — The Document Object Model API
- 20.7.1. Module Contents
- 20.7.2. Objects in the DOM
- 20.7.2.1. DOMImplementation Objects
- 20.7.2.2. Node Objects
- 20.7.2.3. NodeList Objects
- 20.7.2.4. DocumentType Objects
- 20.7.2.5. Document Objects
- 20.7.2.6. Element Objects
- 20.7.2.7. Attr Objects
- 20.7.2.8. NamedNodeMap Objects
- 20.7.2.9. Comment Objects
- 20.7.2.10. Text and CDATASection Objects
- 20.7.2.11. ProcessingInstruction Objects
- 20.7.2.12. Exceptions
- 20.7.3. Conformance
- 20.8. xml.dom.minidom — Minimal DOM implementation
- 20.9. xml.dom.pulldom — Support for building partial DOM trees
- 20.10. xml.sax — Support for SAX2 parsers
- 20.11. xml.sax.handler — Base classes for SAX handlers
- 20.12. xml.sax.saxutils — SAX Utilities
- 20.13. xml.sax.xmlreader — Interface for XML parsers
- 20.14. xml.parsers.expat — Fast XML parsing using Expat