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
--- 超連結標記語言 (HTML) 支援html.parser
--- 簡單的 HTML 和 XHTML 剖析器html.entities
--- HTML 一般實體的定義- XML 處理模組
xml.etree.cElementTree
--- ElementTree XML APIxml.dom
--- Document 物件模型 APIxml.dom.minidom
--- 最小的 DOM 實作xml.dom.pulldom
--- 支援建置部分 DOM 樹xml.sax
--- SAX2 剖析器支援xml.sax.handler
--- SAX 處理函式的基本類別xml.sax.saxutils
--- SAX 工具程式xml.sax.xmlreader
--- XML 剖析器的介面xml.parsers.expat
--- 使用 Expat 進行快速 XML 剖析