MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference page 1011

Actionscript language reference
Table of Contents

Advertisement

Constructor for the XML class
Availability
Flash Player 5.
Usage
new XML([source:String]) : XML
Parameters
A string; the XML text parsed to create the new XML object.
source
Returns
A reference to an XML object.
Description
Constructor; creates a new XML object. You must use the constructor to create an XML object
before you call any of the methods of the XML class.
Note: Use the
createElement()
an XML document tree.
Example
The following example creates a new, empty XML object:
var my_xml:XML = new XML();
The following example creates an XML object by parsing the XML text specified in the
parameter, and populates the newly created XML object with the resulting XML document tree:
var other_xml:XML = new XML("<state name=\"California\">
<city>San Francisco</city></state>");
See also
XML.createElement(),
and
createTextNode()
XML.createTextNode()
methods to add elements and text nodes to
source
XML class
1011

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx

Table of Contents