Reference for Node Methods

Method

Description

addChild()

Add a child under this node

addProperty()

Add the specified property to this node

dump()

Dump the content of the node and the children of the node to standard output

findNodeByPattern()

Find one node that matches the specified pattern

findNodesByPattern()

Find all nodes that match the specified pattern

getChildren()

Retrieve a list of all the children of this node

getChildrenOfType()

Retrieve a list of all the children of this node with the specified node type

getContextualName()

Retrieve the logical name of this node

getNodeType()

Retrieve the type of this node

getPathWithContext()

Retrieve a string that represents the location of this node in the document, including contextual information to make the path unique

getProperties()

Retrieve a list of properties for this node

getProperty()

Retrieve the property of this node with the specified name

getRoot()

Retrieve the root node of the DOM in which this node is stored

hasProperty()

Determine whether this node has a property with the specified name

newNode()

Construct a node

removeChild()

Remove the specified child node

removeProperties()

Remove the specified list of properties from this node

replaceChildNode()

Replace the specified child node with the node provided

setChildren()

Replace the list of children of this node with the provided list