User Guide

1332 ActionScript classes
nodeType (XMLNode.nodeType property)
public nodeType : Number [read-only]
A nodeType value, either 1 for an XML element or 3 for a text node.
The
nodeType is a numeric value from the NodeType enumeration in the W3C DOM Level
1 recommendation: www.w3.org/tr/1998/REC-DOM-Level-1-19981001/level-one-
core.html. The following table lists the values:
In Flash Player, the built-in XML class only supports 1 (
ELEMENT_NODE) and 3 (TEXT_NODE).
Availability: ActionScript 1.0; Flash Player 5
Integer value Defined constant
1ELEMENT_NODE
2 ATTRIBUTE_NODE
3TEXT_NODE
4CDATA_SECTION_N
ODE
5 ENTITY_REFERENCE
_NODE
6ENTITY_NODE
7 PROCESSING_INSTR
UCTION_NODE
8 COMMENT_NODE
9DOCUMENT_NODE
10 DOCUMENT_TYPE_N
ODE
11 DOCUMENT_FRAGM
ENT_NODE
12 NOTATION_NODE