XML.createTextNode()
Availability
Flash Player 5.
Usage
my_xml.createTextNode(text)
Parameters
The text used to create the new text node.
text
Returns
Nothing.
Description
Method; creates a new XML text node with the specified text. The new node initially has no
parent, and text nodes cannot have children or siblings. This method returns a reference to the
XML object representing the new text node. This method and
constructor methods for creating nodes for an XML object.
XML.docTypeDecl
Availability
Flash Player 5.
Usage
.
my_xml
XMLdocTypeDecl
Description
Property; specifies information about the XML document's
text has been parsed into an XML object, the
set to the text of the XML document's
SYSTEM "hello.dtd">
declaration, not an XML node object.
The ActionScript XML parser is not a validating parser. The
parser and stored in the
If no
declaration was encountered during a parse operation,
DOCTYPE
undefined.
XML.toString()
XML declaration stored in
XML.docTypeDecl
Example
The following example uses
my_xml.docTypeDecl = "<!DOCTYPE greeting SYSTEM \"hello.dtd\">";
See also
XML.toString()
DOCTYPE
. This property is set using a string representation of the
property, but no DTD validation is performed.
docTypeDecl
outputs the contents of
XML.xmlDecl
is undefined, no
DOCTYPE
XML.docTypeDecl
,
XML.xmlDecl
DOCTYPE
XML.docTypeDecl
declaration. For example,
DOCTYPE
XML.docTypeDecl
, and before any other text in the XML object. If
declaration is output.
to set the
DOCTYPE
are the
createElement()
declaration. After the XML
property of the XML object is
<!DOCTYPE greeting
DOCTYPE
declaration is read by the
XML.docTypeDecl
immediately after the
declaration for an XML object:
XML.docTypeDecl
is set to
759
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?