EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 771

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
XML.toString() 771
XML.status
Availability
Flash Player 5.
Usage
my_xml.status
Description
Property; automatically sets and returns a numeric value indicating whether an XML document
was successfully parsed into an XML object. The numeric status codes and a description of each
are listed as follows:
0 No error; parse was completed successfully.
-2 A CDATA section was not properly terminated.
-3 The XML declaration was not properly terminated.
-4 The DOCTYPE declaration was not properly terminated.
-5 A comment was not properly terminated.
-6 An XML element was malformed.
-7 Out of memory.
-8 An attribute value was not properly terminated.
-9 A start-tag was not matched with an end-tag.
-10 An end-tag was encountered without a matching start-tag.
XML.toString()
Availability
Flash Player 5.
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),
XML.toString() outputs the
documents XML declaration (stored in XML.xmlDecl), followed by the documents 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.

Table of Contents

Related product manuals