Part of twisted.web View Source
Micro Document Object Model: a partial DOM implementation with SUX.
This is an implementation of what we consider to be the useful subset of the DOM. The chief advantage of this library is that, not being burdened with standards compliance, it can remain very stable between versions. We can also implement utility 'pythonic' ways to access and mutate the XML tree.
Since this has not subjected to a serious trial by fire, it is not recommended to use this outside of Twisted applications. However, it seems to work just fine for the documentation generator, which parses a fairly representative sample of XML.
Microdom mainly focuses on working with HTML and XHTML.Function | getElementsByTagName | Undocumented |
Function | getElementsByTagNameNoCase | Undocumented |
Function | unescape | Perform the exact opposite of 'escape'. |
Function | escape | Escape a few XML special chars with XML entities. |
Class | MismatchedTags | Undocumented |
Class | Node | Undocumented |
Class | Document | Undocumented |
Class | EntityReference | Undocumented |
Class | CharacterData | Undocumented |
Class | Comment | A comment node. |
Class | Text | Undocumented |
Class | CDATASection | Undocumented |
Class | Element | Undocumented |
Class | MicroDOMParser | Undocumented |
Function | parse | Parse HTML or XML readable. |
Function | parseString | Undocumented |
Function | parseXML | Parse an XML readable object. |
Function | parseXMLString | Parse an XML readable object. |
Class | lmx | Easy creation of XML. |
Function | _genprefix | Undocumented |
Class | _Attr | Support class for getAttributeNode. |
Function | _unescapeDict | Undocumented |
Function | _reverseDict | Undocumented |