NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlNodeType Enumeration

The XmlNodeType enumeration represents an XML node type.

[Visual Basic]
Public Enum XmlNodeType
[C#]
public enum XmlNodeType
[C++]
public enum XmlNodeType

[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.

Remarks

The following table lists for each node type value the XmlNode class associated with the node type (if any) and the XmlReader state associated with the node type (if any). Note that the Element and StartTag members have the same value. Also note that the Document value never occurs as the current node type of an XmlReader, and that there are no XmlNode classes corresponding to the EndTag, BOF, and EOF members.

XmlNodeType Value XmlNode class XmlReader state Example
Document 0 XmlDocument    
Element 1 XmlElement   <item>...</item>
StartTag 1   Positioned on start tag <item value="1">
EndTag 2   Positioned on end tag </item>
Text 3 XmlText Positioned on text text between tags
CData 4 XmlCData Positioned on CDATA element <![CDATA[...]]>
Comment 5 XmlComment Positioned on comment <!-- this is a comment-->
PI 6 XmlPI Positioned on processing instruction <?pi instructions?>
Header 7 XmlHeader Positioned on header <?xml version="1.0"?>
DocType 8 XmlDocType Positioned on document type declaration <!DOCTYPE order SYSTEM "order.dtd">
BOF 9   Positioned at beginning of input  
EOF 10   Positioned at end of input  

Members

Member Name Description
BOF Represents the beginning of the input stream.
CData Represents a CDATA node.
Comment Represents a comment node.
DocType Represents an XML document type declaration.
Document Represents a document node.
Element Represents an element node or a start tag.
EndTag Represents an end tag.
EOF Represents the end of the input stream.
Header Represents an XML declaration node.
PI Represents a processing instruction node.
StartTag Represents an element node or a start tag.
Text Represents a text node.

Requirements

Namespace: System.Xml

Assembly: System.dll

See Also

System.Xml Namespace