User Guide
XML class 197
trace("rootNode Node namespaceURI: " + rootNode.namespaceURI);
// Output: [empty string]
var simpleNode = xmlDoc.childNodes[0].childNodes[0];
trace("simpleNode Node namespaceURI: " + simpleNode.namespaceURI);
// Output: ... http://www.w3.org/2001/12/soap-envelope
var innerNode = xmlDoc.childNodes[0].childNodes[0].childNodes[0];
trace("innerNode Node namespaceURI: " + innerNode.namespaceURI);
// Output: ... http://www.w3.org/2001/12/soap-envelope
}
XML.nextSibling
Availability
Flash Media Server 2.
Usage
my_xml.nextSibling
Description
Property (read-only); an XMLNode value that references the next sibling in the parent node’s
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. It
shows how you can use the
XML.nextSibling property to loop through an XMLNode
object’s child nodes.
for (var aNode = rootNode.firstChild; aNode != null; aNode =
aNode.nextSibling) {
trace(aNode);
}
See also
XML.appendChild(), XML.insertBefore(), XML.removeNode()
NOTE
In Flash Media Server, the output of trace() statements appears in the application log
file and Application inspector.