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