NodeType property: XmlNode class
Description
This property returns the type of the XmlNode. You can use either a numeric value or a constant. The values are:
| Numeric Value | Constant Value | Description |
|---|---|---|
|
1 |
%ElementNode |
Element node |
|
2 |
%AttributeNode |
Attribute node |
|
3 |
%TextNode |
Text node |
|
4 |
%CDataSectionNode |
CData section node |
|
5 |
%EntityReferenceNode |
Entity reference node |
|
6 |
%EntityNode |
Entity node |
|
7 |
%ProcessingInstructionNode |
Processing instruction node |
|
8 |
%CommentNode |
Comment node |
|
9 |
%DocumentNode |
Document node |
|
10 |
%DocumentTypeNode |
Document type node |
|
11 |
%NotationNode |
Notation node |
|
12 |
%XmlDeclNode |
XML DECL node |