21. Structured Markup Processing Tools
- html - HyperText Markup Language support
- html.parser - Simple HTML and XHTML parser
- html.entities - Definitions of HTML general entities
- XML Processing Modules
- xml.etree.ElementTree - The ElementTree XML API
- xml.dom - The Document Object Model API
- xml.dom.minidom - Minimal DOM implementation
- xml.dom.pulldom - Support for building partial DOM trees
- xml.sax - Support for SAX2 parsers
- xml.sax.handler - Base classes for SAX handlers
- xml.sax.saxutils - SAX Utilities
- xml.sax.xmlreader - Interface for XML parsers
- xml.parsers.expat - Fast XML parsing using Expat
xml.etree.ElementTree
The xml.etree.ElementTree module implements a simple and efficient API for parsing and creating XML data.
Main Classes
Element
ElementTree
Main Functions
ET.fromstring(String) --> Element
ET.tostring(Element) --> String
ET.parse(File) --> ElementTree