| Class | NodeLookupError |
Undocumented |
| Class | RawText |
No summary |
| Function | clearNode |
Remove all children from the given node. |
| Function | findElements |
Return an iterable of the elements which are children of parent for which the predicate matcher returns true. |
| Function | findElementsWithAttribute |
Undocumented |
| Function | findElementsWithAttributeShallow |
Return an iterable of the elements which are direct children of parent and which have the attribute attribute. |
| Function | findNodes |
Undocumented |
| Function | findNodesNamed |
Undocumented |
| Function | findNodesShallow |
Undocumented |
| Function | findNodesShallowOnMatch |
Undocumented |
| Function | gatherTextNodes |
No summary |
| Function | get |
Get a node with the specified nodeId as any of the class, id or pattern attributes. If there is no such node, raise NodeLookupError. |
| Function | getAndClear |
Get a node with the specified nodeId as any of the class, id or pattern attributes. If there is no such node, raise NodeLookupError. Remove all child nodes before returning. |
| Function | getIfExists |
Get a node with the specified nodeId as any of the class, id or pattern attributes. If there is no such node, return None. |
| Function | getNodeText |
Undocumented |
| Function | getParents |
Undocumented |
| Function | locateNodes |
Find subnodes in the given node where the given attribute has the given value. |
| Function | namedChildren |
namedChildren(parent, nodeName) -> children (not descendants) of parent that have tagName == nodeName |
| Function | substitute |
Look through the given node's children for strings, and attempt to do string substitution with the given parameter. |
| Function | superAppendAttribute |
Undocumented |
| Function | superPrependAttribute |
Undocumented |
| Function | superSetAttribute |
Undocumented |
| Function | writeNodeData |
Undocumented |
| Function | _get |
(internal) Get a node with the specified nodeId as any of the class, id or pattern attributes. |
Visit each child node and collect its text data, if any, into a string. For example:
>>> doc=microdom.parseString('<a>1<b>2<c>3</c>4</b></a>')
>>> gatherTextNodes(doc.documentElement)
'1234'
With dounescape=1, also convert entities back into normal characters.
| Returns | |
| str | the gathered nodes as a single string |
NodeLookupError.NodeLookupError. Remove all child nodes before returning.None.