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 APIxml.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