User Guide

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