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

Specifies the type of node.

[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.

Members

Member Name Description
All [To be supplied.]
Attribute An Attribute.

Example XML: id='123'

An Attribute node can have the following child node types: Text and EntityReference. The Attribute node does not appear as the child node of any other node type; note that it is not considered a child node of an Element.

CDATA A CDATA section. Example XML: <![CDATA[my escaped text]]> CDATA sections are used to escape blocks of text that would otherwise be recognized as markup. A CDATASection node cannot have any child nodes. The CDATASection node can appear as the child of the DocumentFragment, EntityReference, and Element nodes.
CharacterEntity [To be supplied.]
Comment A Comment.

Example XML: <!-- my comment-->

A Comment node cannot have any child nodes. The Comment node can appear as the child of the Document, DocumentFragment, Element, and EntityReference nodes.

Document A document object, which, as the root of the document tree, provides access to the entire XML document.

A Document node can have the following child node types: Element (maximum of one), ProcessingInstruction, Comment, and DocumentType. The Document node cannot appear as the child of any node types.

DocumentFragment A document fragment.

The DocumentFragment node associates a node or subtree with a document without actually being contained within the document. A DocumentFragment node can have the following child node types: Element, ProcessingInstruction, Comment, Text, CDATASection, and EntityReference. The DocumentFragment node cannot appear as the child of any node types.

DocumentType The document type declaration, indicated by the <!DOCTYPE> tag.

Example XML: <!DOCTYPE ...>

A DocumentType node can have the following child node types: Notation and Entity. The DocumentType node can appear as the child of the Document node.

Element An Element.

Example XML: <Name>An Element node can have the following child node types: Element, Text, Comment, ProcessingInstruction, CDATA, and EntityReference. The Element node can be the child of the Document, DocumentFragment, EntityReference, and Element nodes.

EndEntity Returned when XmlReader gets to the end of the entity replacement as a result of a call to ExpandEntity.
EndTag End tag of an element.

Example XML: </foo>

Entity An expanded entity.

Example XML: <!ENTITY ...>

An Entity node can have child nodes that represent the expanded entity (for example, Text and EntityReference nodes). The Entity node can appear as the child of the DocumentType node.

EntityReference A reference to an entity.

Example XML: &foo;

This applies to all entities, including character entity references. An EntityReference node can have the following child node types: Element, ProcessingInstruction, Comment, Text, CDATASection, and EntityReference. The EntityReference node can appear as the child of the Attribute, DocumentFragment, Element, and EntityReference nodes.

None For XmlNavigator, cursor is not positioned on a node.
Notation A notation in the document type declaration.

Example XML: <!NOTATION ...>

A Notation node cannot have any child nodes. The Notation node can appear as the child of the DocumentType node.

ProcessingInstruction A processing instruction (PI).

Example XML: <?pi test?>

A PI node cannot have any child nodes. The PI node can appear as the child of the Document, DocumentFragment, Element, and EntityReference nodes.

SignificantWhitespace Whitespace between markup in a mixed content model.
Text The text content of an element.

A Text node cannot have any child nodes. The Text node can appear as the child node of the Attribute, DocumentFragment, Element, and EntityReference nodes.

Whitespace Whitespace between markup.

Requirements

Namespace: System.NewXml

Assembly: System.Xml.dll

See Also

System.NewXml Namespace