User Guide
170 Server-Side ActionScript Language Reference
Description
Constructor; creates a new XML object. You must use the constructor to create an XML
object before you call any of the XML class methods.
Example
The following example creates a new, empty XML object:
var my_xml = new XML();
The following example creates an XML object by parsing the XML text specified in the
source parameter and populates the newly created XML object with the resulting XML
document tree:
var other_xml = new XML("<state name=\"California\"><city>San Francisco</
city></state>");
See also
XML.createElement(), XML.createTextNode()
XML.addRequestHeader()
Availability
Flash Media Server 2.
Usage
my_xml.addRequestHeader(headerName, headerValue)
my_xml.addRequestHeader(["headerName_1", "headerValue_1" ...
"headerName_n", "headerValue_n"])
Parameters
headerName A string that represents an HTTP request header name.
headerValue A string that represents the value associated with headerName.
Returns
Nothing.
NOTE
Use the createElement() and createTextNode() methods to add elements and text
nodes to an XML document tree.