MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 207

Server-side actionscript language reference
Table of Contents

Advertisement

Example
The following example creates an XML packet and writes the parent node of the
node to the log file:
var my_xml = new XML("<login><username>morton</username>
<password>good&amp;evil</password></login>");
// The first child is the <login /> node.
var rootNode = my_xml.firstChild;
// The first child of the root is the <username /> node.
var targetNode = rootNode.firstChild;
trace("the parent node of '"+targetNode.nodeName+"' is:
"+targetNode.parentNode.nodeName);
trace("contents of the parent node are:\n"+targetNode.parentNode);
/* output (line breaks added for clarity):
the parent node of 'username' is: login
contents of the parent node are:
<login>
<username>morton</username>
<password>good&amp;evil</password>
</login>
*/
In Flash Media Server, the output of
file and Application inspector.
See also
XML.appendChild(), XML.insertBefore(),
XML.parseXML()
Availability
Flash Media Server 2.
Usage
my_xml.parseXML(source)
Parameters
A string; the XML text to be parsed and passed to the specified XML object.
source
Returns
Nothing.
statements appears in the application log
trace()
XML.removeNode()
username
XML class
207

Advertisement

Table of Contents
loading
Need help?

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?

This manual is also suitable for:

Flash media server 2

Table of Contents