The XMLNode class is the main node class.
The XMLNode class defines the following attributes.
|
|
|
nodeName
|
String
|
The node name
|
nodeValue
|
String
|
The node value
|
parentNode
|
Object
|
The parent node (XMLNode)
|
The XMLNode class defines the following methods.
|
|
|
appendChild(XMLNode):Object
|
Object
|
Adds a newChild node to the end of the list of child nodes of this node. If the newChild node exists in the tree, it is first removed.
|
cloneNode(boolean):Object
|
Object
|
Clones a node.
|
getChildNodes():XMLNodeList
|
XMLNodeList
|
Gets all child nodes.
|
insertBefore(XMLNode,XMLNode):Object
|
Object
|
Inserts a newChild node before the existing child node refChild. If refChild is null, the newChild node is inserted at the end of list of child nodes. If the newChild node exists in the tree, it is first removed.
|
normalize():Object
|
Object
|
Normalizes the node.
|
removeChild(XMLNode):Object
|
Object
|
Removes the child node indicated by oldChild from the list of child nodes and returns it.
|
insertBefore(XMLNode,XMLNode):Object
|
Object
|
Inserts a newChild node before the existing child node refChild. If refChild is null, the newChild node is inserted at the end of list of child nodes. If the newChild node exists in the tree, it is first removed.
|
replaceChild(XMLNode,XMLNode):Object
|
Object
|
Replaces the oldChild node with a newChild node in the list of child nodes and returns the oldChild node. If the newChild node exists in the tree, it is first removed.
|