User Guide

XML.nextSibling 1037
XML.nextSibling
Availability
Flash Player 5.
Usage
my_xml.nextSibling:XMLNode
Description
Read-only property; an XMLNode value that references the next sibling in the parent nodes child
list. This property is
null if the node does not have a next sibling node. This property cannot be
used to manipulate child nodes; use the
appendChild(), insertBefore(), and removeNode()
methods to manipulate child nodes.
Example
The following example is an excerpt from the example for the XML.firstChild property, and
shows how you can use the
XML.nextSibling property to loop through an XML nodes child
nodes:
for (var aNode:XMLNode = rootNode.firstChild; aNode != null; aNode =
aNode.nextSibling) {
trace(aNode);
}
See also
XML.appendChild(), XML.insertBefore(), XML.removeNode(), XMLNode class