User Guide
XML 1285
XML
Object
|
+-XMLNode
|
+-XML
public class XML
extends XMLNode
Use the methods and properties of the XML class to load, parse, send, build, and manipulate
XML document trees.
You must use the constructor
new XML() to create an XML object before calling any method
of the XML class.
An XML document is represented in Flash by the XML class. Each element of the hierarchical
document is represented by an XMLNode object.
For information on the following methods and properties, you can see the XMLNode class,
specifically
appendChild(), attributes, childNodes, cloneNode(), firstChild,
hasChildNodes(), insertBefore(), lastChild, nextSibling, nodeName, nodeType,
nodeValue, parentNode, previousSibling, removeNode(), and toString().
In earlier versions of the ActionScript Language Reference, the previous methods and
properties were documented in the XML class. They are now documented in the XMLNode
class.
Availability: ActionScript 1.0; Flash Player 5 - (became a native object in Flash Player 6,
which improved performance significantly).
NOTE
The XML and XMLNode objects are modeled after the W3C DOM Level 1
recommendation, which you can find at: http://www.w3.org/tr/1998/REC-DOM-Level-
1-19981001/level-one-core.html. That recommendation specifies a Node interface and a
Document interface. The Document interface inherits from the Node interface, and adds
methods such as
createElement() and createTextNode(). In ActionScript, the XML and
XMLNode objects are designed to divide functionality along similar lines.