Xml.tostring() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

XML.toString()

Availability
Flash Player 5.
Usage
my_xml.toString() : String
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
document's
DOCTYPE
representation of all XML nodes in the object. The XML declaration is not output if the
property is
XML.xmlDecl
XML.docTypeDecl
Example
The following example of the
panel:
var node:XML = new XML("<h1>test</h1>");
trace(node.toString());
See also
XML.docTypeDecl,
declaration (stored in the
. The
undefined
property is
undefined
XML.toString()
XML.xmlDecl
XML.xmlDecl
XML.docTypeDecl
declaration is not output if the
DOCTYPE
.
method displays
method
XML.toString()
property), followed by the
property), followed by the text
in the Output
<h1>test</h1>
XML.toString() 1055

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents