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).
htmlβ HyperText Markup Language supporthtml.parserβ Simple HTML and XHTML parserhtml.entitiesβ Definitions of HTML general entities- XML Processing Modules
xml.etree.ElementTreeβ The ElementTree XML APIxml.domβ The Document Object Model API- Module Contents
- Objects in the DOM
- DOMImplementation Objects
- Node Objects
- NodeList Objects
- DocumentType Objects
- Document Objects
- Element Objects
- Attr Objects
- NamedNodeMap Objects
- DocumentFragment Objects
- CharacterData Objects
- Comment Objects
- Text and CDATASection Objects
- ProcessingInstruction Objects
- Entity Objects
- Notation Objects
- Exceptions
- Conformance
xml.dom.minidomβ Minimal DOM implementationxml.dom.pulldomβ Support for building partial DOM treesxml.saxβ Support for SAX2 parsersxml.sax.handlerβ Base classes for SAX handlersxml.sax.saxutilsβ SAX Utilitiesxml.sax.xmlreaderβ Interface for XML parsersxml.parsers.expatβ Fast XML parsing using Expat