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).
htmlHyperText Markup Language supporthtml.parserSimple HTML and XHTML parserhtml.entitiesDefinitions of HTML general entities- XML Processing Modules
xml.etree.ElementTreeThe ElementTree XML APIxml.domThe 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.minidomMinimal DOM implementationxml.dom.pulldomSupport for building partial DOM treesxml.saxSupport for SAX2 parsersxml.sax.handlerBase classes for SAX handlersxml.sax.saxutilsSAX Utilitiesxml.sax.xmlreaderInterface for XML parsersxml.parsers.expatFast XML parsing using Expat