Parent
extends Node
Parent is an abstract type for nodes that may have childnodes.
Constructors
Parent other,
Node deep
kids = new org.oXML.xpath.iterator.DynamicNodeset();
if(deep){
for(int i=0; i < other.kids.size(); ++i){
Node kid = other.kids.getNode(i).copy(true);
kids.addNode(kid.cast());
kid.setParent(me);
}
}
kids = new org.oXML.xpath.iterator.DynamicNodeset();
Type Functions
append(Node child)
Add a node to the end of this Parents set of child nodes.
Parameter child: the node to append
Returns: This Parent.
Append the child nodes of the given nodeset.
boolean()
count()
insert(Number position, Node child)
insertAfter(Node current, Node other)
insertBefore(Node current, Node other)
nodes()
Get a nodeset containing the child nodes of this Parent, if any.
prepend(Node child)
Add a node to the beginning of this Parent set of child nodes.
Parameter child: the node to prepend
Returns: This Parent.
remove(Node child)
replace(Node current, Node replacement)
Functions inherited from Node