Structured Markup Processing Tools¶
Python supports a variety of modules to work with various forms of structureddata markup. This includes modules to work with the Standard Generalized MarkupLanguage (SGML) and the Hypertext Markup Language (HTML), and several interfacesfor 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