Skip to content

piNodeType - BaseXmlDomNode

The type of the node

Type: Property
Access: Read-Only
Data Type: Integer
Parameters: None

Syntax

Property Integer piNodeType
Access Type Syntax
Read Access: 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 1Element Node
NODE_ATTRIBUTE 2Attribute node
NODE_TEXT 3Text node
NODE_CDATA_SECTION 4CDATA Section node
NODE_ENTITY_REFERENCE 5Entity Reference Node
NODE_ENTITY 6Entity node
NODE_PROCESSING_INSTRUCTION 7Processing Instruction node
NODE_COMMENT 8Comment node
NODE_DOCUMENT 9Document node
NODE_DOCUMENT_TYPE 10Document Type (DTD) node
NODE_DOCUMENT_FRAGMENT 11Document Fragment node
NODE_NOTATION 12Notation node

Example

Get piNodeType Of hoNode To iType
Showln  "The type of the node is " iType