User Guide

XML.nextSibling 465
Example
The following example uses the XML.loaded property in a simple script:
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
trace("success: "+success);
trace("loaded: "+my_xml.loaded);
trace("status: "+my_xml.status);
};
my_xml.load("http://www.flash-mx.com/mm/problems/products.xml");
Information writes to the log file when the onLoad handler invokes. If the call completes
successfully,
true writes to the log file for the loaded status.
success: true
loaded: true
status: 0
See also
XML.load(), XML.onLoad
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