User Guide

1010 Chapter 2: ActionScript Language Reference
Property summary for the XML class
Collections summary for the XML class
Event handler summary for the XML class
Property Description
XML.contentType
The MIME type transmitted to the server.
XML.docTypeDecl
Sets and returns information about an XML document’s
DOCTYPE declaration.
XML.firstChild
Read-only; references the first child in the list for the specified node.
XML.ignoreWhite
When set to true, discards, during the parsing process, text nodes that
contain only white space.
XML.lastChild
Read-only; references the last child in the list for the specified node.
XML.loaded
Read-only; checks whether the specified XML object has loaded.
XML.nextSibling
Read-only; references the next sibling in the parent node’s child list.
XML.nodeName
The node name of an XML object.
XML.nodeType
The type of the specified node (XML element or text node).
XML.nodeValue
The text of the specified node if the node is a text node.
XML.parentNode
Read-only; references the parent node of the specified node.
XML.previousSibling
Read-only; references the previous sibling in the parent node’s child list.
XML.status
A numeric status code that indicates 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 that contains all the attributes of the specified
node.
XML.childNodes
Read-only; returns an array that contains references to the child nodes of
the specified node.
Event handler Description
XML.onData
Invoked when XML text has been completely downloaded from the
server, or when an error occurs downloading XML text from a server.
XML.onLoad
Returns a Boolean value indicating whether the XML object was
successfully loaded with
XML.load() or XML.sendAndLoad().