Part of twisted.web View Source
Class | NodeLookupError | Undocumented |
Function | substitute | Look through the given node's children for strings, and attempt to do string substitution with the given parameter. |
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 | 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 | 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 | clearNode | Remove all children from the given node. |
Function | locateNodes | Find subnodes in the given node where the given attribute has the given value. |
Function | superSetAttribute | Undocumented |
Function | superPrependAttribute | Undocumented |
Function | superAppendAttribute | Undocumented |
Function | gatherTextNodes | No summary |
Class | RawText | No summary |
Function | findNodes | Undocumented |
Function | findNodesShallowOnMatch | Undocumented |
Function | findNodesShallow | Undocumented |
Function | findElementsWithAttributeShallow | Undocumented |
Function | findElements | Undocumented |
Function | findElementsWithAttribute | Undocumented |
Function | findNodesNamed | Undocumented |
Function | writeNodeData | Undocumented |
Function | getNodeText | Undocumented |
Function | getParents | Undocumented |
Function | namedChildren | namedChildren(parent, nodeName) -> children (not descendants) of parent that have tagName == nodeName |
Function | _get | (internal) Get a node with the specified nodeId as any of
the class , id or pattern
attributes.
|
nodeId
as any of
the class
, id
or pattern
attributes.
nodeId
as any of the
class
, id
or pattern
attributes. If
there is no such node, raise NodeLookupError
.
nodeId
as any of the
class
, id
or pattern
attributes. If
there is no such node, return None
.
nodeId
as any of the
class
, id
or pattern
attributes. If
there is no such node, raise NodeLookupError
.
Remove all child nodes before returning.
>>> 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 | the gathered nodes as a single string (type: str ) |