User Guide
XML class 191
The following example creates a new XML packet and uses the XML.lastChild property to
iterate through the child nodes of the root node:
// Create a new XML document.
var doc = new XML("<rootNode><oldest /><middle /><youngest /></rootNode>");
var rootNode = doc.firstChild;
// Use lastChild to iterate through the child nodes of rootNode.
for (var aNode = rootNode.lastChild; aNode != null;
aNode=aNode.previousSibling) {
trace(aNode);
}
/*
output:
<youngest />
<middle />
<oldest />
*/
See also
XML.appendChild(), XML.insertBefore(), XML.removeNode()
XML.load()
Availability
Flash Media Server 2.
Usage
my_xml.load(url)
Parameters
url A string; the URL where the XML document to be loaded is located. If the SWF file
that issues this call is running in a web browser,
url must be in the same domain as the SWF
file.
Returns
Nothing.
NOTE
In Flash Media Server, the output of trace() statements appears in the application log
file and Application inspector.