Example
The following example creates an XML packet and then deletes the specified XML object and
its descendant nodes:
var xml_str = "<state name=\"California\">
<city>San Francisco</city></state>";
var my_xml = new XML(xml_str);
var cityNode = my_xml.firstChild.firstChild;
trace("before XML.removeNode():\n"+my_xml);
cityNode.removeNode();
trace("");
trace("after XML.removeNode():\n"+my_xml);
/* output (line breaks added for clarity):
before XML.removeNode():
<state name="California">
<city>San Francisco</city>
</state>
after XML.removeNode():
<state name="California" />
*/
In Flash Media Server, the output of
file and Application inspector.
XML.send()
Availability
Flash Media Server 2.
Usage
my_xml.send(url, [fileObj])
Parameters
A string; the destination URL for the specified XML object.
url
File; (optional) a File object, that is not read-only, to which the response is written.
fileObj
If the File object is not open, Flash Media Server opens the file, writes to the file, and closes
the file. If the File object is open, Flash Media Server writes to the file and leaves the file open.
statements appears in the application log
trace()
XML class
211
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?