Methods
|
|
|
|
getAttributes
|
getAttributes ( self )
Returns a NamedNodeMap containing the attributes
of this node (if it is an element) or None otherwise.
|
|
getChildNodes
|
getChildNodes ( self )
Returns a NodeList that contains all children of this node.
If there are no children, this is a empty NodeList
|
|
getFirstChild
|
getFirstChild ( self )
The first child of this node. If there is no such node
this returns None.
|
|
getLastChild
|
getLastChild ( self )
The last child of this node. If there is no such node
this returns None.
|
|
getNextSibling
|
getNextSibling ( self )
The node immediately preceding this node. If
there is no such node, this returns None.
|
|
getNodeName
|
getNodeName ( self )
The name of this node, depending on its type
|
|
getNodeValue
|
getNodeValue ( self )
The value of this node, depending on its type
|
|
getOwnerDocument
|
getOwnerDocument ( self )
The Document object associated with this node.
When this is a document this is None
|
|
getParentNode
|
getParentNode ( self )
The parent of this node. All nodes except Document
DocumentFragment and Attr may have a parent
|
|
getPreviousSibling
|
getPreviousSibling ( self )
The node immediately preceding this node. If
there is no such node, this returns None.
|
|
hasChildNodes
|
hasChildNodes ( self )
Returns true if the node has any children, false
if it doesn't.
|