The node type of this node.
[Visual Basic] MustOverride Public ReadOnly Property NodeType As XmlNodeType [C#] public XmlNodeType NodeType {abstract get;} [C++] public: __property virtual XmlNodeType get_NodeType() = 0; [JScript] public abstract function get NodeType() : XmlNodeType;
The value of this property depends on the actual XmlNode class as follows:
XmlNode class | Value | Example |
---|---|---|
XmlDocument | Document | |
XmlElement | Element | <item>...</item> |
XmlText | Text | text between tags |
XmlCData | CData | <![CDATA[...]]> |
XmlComment | Comment | <!-- this is a comment--> |
XmlPI | PI | <?pi instructions?> |
XmlHeader | Header | <?xml version="1.0"?> |
XmlDocType | DocType | <!DOCTYPE order SYSTEM "order.dtd"> |