XML.toString()
Availability
Flash Media Server 2.
Usage
my_xml.toString()
Parameters
None.
Returns
A string.
Description
Method; evaluates the specified XML object, constructs a textual representation of the XML
structure, including the node, children, and attributes, and returns the result as a string.
For top-level XML objects (those created with the constructor), the
outputs the document's XML declaration (stored in the
the document's
DOCTYPE
the text representation of all XML nodes in the object. The XML declaration is not output if
the
property is
XML.xmlDecl
property is
XML.docTypeDecl
Example
The following example of the
var node = new XML("<h1>test</h1>");
trace(node.toString());
In Flash Media Server, the output of
file and Application inspector.
See also
XML.docTypeDecl,
216
Server-Side ActionScript Language Reference
declaration (stored in the
. The
undefined
.
undefined
XML.toString()
trace()
XML.xmlDecl
XML.toString()
XML.xmlDecl
XML.docTypeDecl
declaration is not output if the
DOCTYPE
method sends
<h1>test</h1>
statements appears in the application log
method
property), followed by
property), followed by
to the log file:
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?