PyDocs

Nav

Structured Markup Processing Tools

Node

xml.dom

class (source)
Class giving the NodeType constants.
Members of Node

a

appendChild
Add a new child node to this node at the end of the list of children, returning newChild.
ATTRIBUTE_NODE
Integer constants for the possible values of the nodeType attribute.
attributes
A NamedNodeMap of attribute objects.

c

CDATA_SECTION_NODE
Integer constants for the possible values of the nodeType attribute.
childNodes
A NodeList of the children of this node.
cloneNode
Clone this node.
COMMENT_NODE
Integer constants for the possible values of the nodeType attribute.

d

DOCUMENT_FRAGMENT_NODE
Integer constants for the possible values of the nodeType attribute.
DOCUMENT_NODE
Integer constants for the possible values of the nodeType attribute.
DOCUMENT_TYPE_NODE
Integer constants for the possible values of the nodeType attribute.

e

ELEMENT_NODE
Integer constants for the possible values of the nodeType attribute.
ENTITY_NODE
Integer constants for the possible values of the nodeType attribute.
ENTITY_REFERENCE_NODE
Integer constants for the possible values of the nodeType attribute.

f

firstChild
The first child of the node, if there are any, or None.

g

getUserData
Return the data associated with key on this node by setUserData(), or None.

h

hasAttributes
Return True if the node has any attributes.
hasChildNodes
Return True if the node has any child nodes.

i

insertBefore
Insert a new child node before an existing child.
isSameNode
Return True if other refers to the same node as this node.
isSupported
Return whether the DOM implementation supports a particular feature, as DOMImplementation.hasFeature() does.

l

lastChild
The last child of the node, if there are any, or None.
localName
The part of the tagName following the colon if there is one, else the entire tagName.

n

namespaceURI
The namespace associated with the element name.
nextSibling
The node that immediately follows this one with the same parent.
nodeName
The name of this node, depending on its type; see the table below.
nodeType
An integer representing the node type.
nodeValue
The value of this node, depending on its type; see the table below.
normalize
Join adjacent text nodes so that all stretches of text are stored as single Text instances.
NOTATION_NODE
Integer constants for the possible values of the nodeType attribute.

o

ownerDocument
The Document object to which this node belongs, or None for a document itself.

p

parentNode
The parent of the current node, or None for the document node.
prefix
The part of the tagName preceding the colon if there is one, else the empty string.
previousSibling
The node that immediately precedes this one with the same parent.
PROCESSING_INSTRUCTION_NODE
Integer constants for the possible values of the nodeType attribute.

r

removeChild
Remove a child node.
replaceChild
Replace an existing node with a new node.

s

setUserData
Associate data with key on this node and return the data previously associated with key, or None.

t

TEXT_NODE
Integer constants for the possible values of the nodeType attribute.
0 Examples
No examples for xml.dom/Node.
See Also
No see-alsos for xml.dom/Node
0 Notes
No notes for Node