![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 5.
my_xml
.toString()
None.
A string.
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), XML.toString()
outputs the document's XML declaration (stored in XML.xmlDecl
), followed by the document's DOCTYPE
declaration (stored in XML.docTypeDecl
), followed by the text representation of all XML nodes in the object. The XML declaration is not output if XML.xmlDecl
is undefined. The DOCTYPE
declaration is not output if XML.docTypeDecl
is undefined.
The following code is an example of XML.toString()
that sends <h1>test</h1>
to the Output panel.
node = new XML("<h1>test</h1>");
trace(node.toString());
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |