456
Chapter 6: ActionScript Core Classes
XML.docTypeDecl
Availability
Flash Player 5.
Usage
my_xml
.
docTypeDecl
:String
Description
Property; specifies information about the XML document’s
DOCTYPE
declaration. After the XML
text has been parsed into an XML object, the
XML.docTypeDecl
property of the XML object is
set to the text of the XML document’s
DOCTYPE
declaration (for example,
<!DOCTYPE
greeting
SYSTEM "hello.dtd">
). This property is set using a string representation of the
DOCTYPE
declaration, not an XML node object.
The ActionScript XML parser is not a validating parser. The
DOCTYPE
declaration is read by the
parser and stored in the
XML.docTypeDecl
property, but no DTD validation is performed.
If no
DOCTYPE
declaration was encountered during a parse operation, the
XML.docTypeDecl
property is set to
undefined
. The
XML.toString()
method outputs the contents
of
XML.docTypeDecl
immediately after the XML declaration stored in
XML.xmlDecl
, and before
any other text in the XML object. If
XML.docTypeDecl
is undefined, no
DOCTYPE
declaration is
output.
Example
The following example uses the
XML.docTypeDecl
property to set the
DOCTYPE
declaration for an
XML object:
my_xml
.docTypeDecl = "<!DOCTYPE greeting SYSTEM \"hello.dtd\">";
See also
XML.toString()
,
XML.xmlDecl
XML.firstChild
Availability
Flash Player 5.
Usage
my_xml
.firstChild
:XMLNode
Description
Read-only property; evaluates the specified XML object and references the first child in the parent
node’s child list. This property is
null
if the node does not have children. This property is
undefined
if the node is a text node. This is a read-only property and cannot be used to
manipulate child nodes; use the
appendChild()
,
insertBefore()
, and
removeNode()
methods
to manipulate child nodes.
Содержание FLEX-FLEX ACTIONSCRIPT LANGUAGE
Страница 1: ...Flex ActionScript Language Reference...
Страница 8: ......
Страница 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Страница 76: ......
Страница 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Страница 135: ...case 135 See also break default strict equality switch...
Страница 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Страница 229: ...while 229 i 3 The following result is written to the log file 0 3 6 9 12 15 18 See also do while continue for for in...
Страница 808: ...808 Chapter 7 ActionScript for Flash...
Страница 810: ...810 Appendix A Deprecated Flash 4 operators...
Страница 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Страница 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Страница 822: ...822 Index...