class documentation
class Node: (source)
Known subclasses: twisted.web.microdom.CharacterData
, twisted.web.microdom.Document
, twisted.web.microdom.Element
, twisted.web.microdom.EntityReference
Constructor: Node(parentNode)
Undocumented
Method | __init__ |
Undocumented |
Method | append |
Make the given Node the last child of this node. |
Method | clone |
Undocumented |
Method | first |
Undocumented |
Method | has |
Undocumented |
Method | insert |
Make the given Node new a child of this node which comes before the Node ref. |
Method | is |
Compare this node to other. If the nodes have the same number of children and corresponding children are equal to each other, return True, otherwise return False. |
Method | last |
Undocumented |
Method | remove |
Remove the given Node from this node's children. |
Method | replace |
Replace a Node which is already a child of this node with a different node. |
Method | toprettyxml |
Undocumented |
Method | toxml |
Undocumented |
Method | writeprettyxml |
Undocumented |
Method | writexml |
Undocumented |
Class Variable | node |
Undocumented |
Instance Variable | child |
Undocumented |
Instance Variable | parent |
Undocumented |
overridden in
twisted.web.microdom.CharacterData
, twisted.web.microdom.Document
, twisted.web.microdom.Element
, twisted.web.microdom.EntityReference
Undocumented
overridden in
twisted.web.microdom.Element
, twisted.web.microdom.Text
Compare this node to other. If the nodes have the same number of children and corresponding children are equal to each other, return True, otherwise return False.
Parameters | |
other:Node | Undocumented |
Returns | |
bool | Undocumented |
Replace a Node
which is already a child of this node with a different node.
Parameters | |
new | A Node which will be made a child of this node. |
old | A Node which is a child of this node which will give up its position to newChild. |
Raises | |
TypeError | If newChild or oldChild is not a Node instance. |
ValueError | If oldChild is not a child of this Node. |