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.
This module is now deprecated.
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
A comment node. |
Class |
|
No class docstring; 0/1 property, 0/1 class variable, 1/10 method documented |
Class |
|
No class docstring; 0/10 instance variable, 2/17 methods documented |
Class |
|
Undocumented |
Class | lmx |
Easy creation of XML. |
Class |
|
Undocumented |
Class |
|
No class docstring; 0/2 instance variable, 0/1 class variable, 5/14 methods documented |
Class |
|
No class docstring; 0/1 instance variable, 1/5 method documented |
Exception |
|
Undocumented |
Function | escape |
Escape a few XML special chars with XML entities. |
Function | get |
Return a list of all child elements of iNode with a name matching name. |
Function | get |
Undocumented |
Function | parse |
Parse HTML or XML readable. |
Function | parse |
Undocumented |
Function | parse |
Parse an XML readable object. |
Function | parse |
Parse an XML readable object. |
Function | unescape |
Perform the exact opposite of 'escape'. |
Constant | HTML |
Undocumented |
Constant | REV |
Undocumented |
Constant | REV |
Undocumented |
Constant | XML |
Undocumented |
Variable | genprefix |
Undocumented |
Variable | warning |
Undocumented |
Class | _ |
Support class for getAttributeNode. |
Function | _genprefix |
Undocumented |
Function | _reverse |
Undocumented |
Function | _stream |
Undocumented |
Function | _unescape |
Undocumented |
Return a list of all child elements of iNode with a name matching name.
Note that this implementation does not conform to the DOM Level 1 Core specification because it may return iNode.
Parameters | |
i | An element at which to begin searching. If iNode has a name matching name, it will be included in the result. |
name | A str giving the name of the elements to return. |
Returns | |
A list of direct or indirect child elements of iNode with the name name. This may include iNode. |