The type of the node
Type: Property
Access: Read-Only
Data Type: Integer
Parameters:
None
Syntax
Property Integer piNodeType
Get piNodeType to IntegerVariable |
Description
piNodeType is the type of the node (for example, Attribute, Notation, Text, Comment, etc.) The following table is a list of all node types supported:
|
Node Name Constant | Number Constant | Node Type |
---|
NODE_ELEMENT | 1 | Element Node |
NODE_ATTRIBUTE | 2 | Attribute node |
NODE_TEXT | 3 | Text node |
NODE_CDATA_SECTION | 4 | CDATA Section node |
NODE_ENTITY_REFERENCE | 5 | Entity Reference Node |
NODE_ENTITY | 6 | Entity node |
NODE_PROCESSING_INSTRUCTION | 7 | Processing Instruction node |
NODE_COMMENT | 8 | Comment node |
NODE_DOCUMENT | 9 | Document node |
NODE_DOCUMENT_TYPE | 10 | Document Type (DTD) node |
NODE_DOCUMENT_FRAGMENT | 11 | Document Fragment node |
NODE_NOTATION | 12 | Notation node |
Example
Get piNodeType Of hoNode To iType
Showln "The type of the node is " iType