XML class 753
Collections summary for the XML class
Event handler summary for the XML class
Constructor for the XML class
Availability
Flash Player 5.
Usage
new XML([source])
Parameters
source
The XML text parsed to create the new XML object.
Returns
Nothing.
Description
Constructor; creates a new XML object. You must use the constructor to create an XML object
before calling any of the methods of the XML class.
Note: The createElement() and createTextNode() methods are the “constructor” methods for
creating the elements and text nodes in an XML document tree.
XML.previousSibling Read-only; references the previous sibling in the parent node’s child list.
XML.status A numeric status code indicating the success or failure of an XML
document parsing operation.
XML.xmlDecl Specifies information about a document’s XML declaration.
Method Description
XML.attributes Returns an associative array containing all of the attributes of the
specified node.
XML.childNodes Read-only; returns an array containing references to the child nodes of the
specified node.
Event handler Description
XML.onData An event handler that is invoked when XML text has been completely
downloaded from the server, or when an error occurs downloading XML
text from a server.
XML.onLoad() An event handler that returns a Boolean value indicating whether the XML
object was successfully loaded with
XML.load() or XML.sendAndLoad().
Property Description