System.Xml.XmlNodeType Enumeration

Specifies the type of node.

Syntax

public enum XmlNodeType

Remarks

A given set of XML data is modeled as a tree of nodes. This enumeration specifies the different node types.

Members

Member NameDescription
Attribute

An attribute (for example, id='123' ).

CDATA

A CDATA section (for example, <![CDATA[my escaped text]]> ).

Comment

A comment (for example, <!-- my comment --> ).

Document

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

DocumentFragment

A document fragment.

DocumentType

The document type declaration, indicated by the following tag (for example, <!DOCTYPE...> ).

Element

An element (for example, <item> ).

EndElement

An end element tag (for example, </item> ).

EndEntity

Returned when XmlReader gets to the end of the entity replacement as a result of a call to XmlReader.ResolveEntity.

Entity

An entity declaration (for example, <!ENTITY...> ).

EntityReference

A reference to an entity (for example, &num; ).

None

This is returned by the System.Xml.XmlReader if a Read method has not been called.

Notation

A notation in the document type declaration (for example, <!NOTATION...> ).

ProcessingInstruction

A processing instruction (for example, <?pi test?> ).

SignificantWhitespace

White space between markup in a mixed content model or white space within the xml:space="preserve" scope.

Text

The text content of a node.

Whitespace

White space between markup.

XmlDeclaration

The XML declaration (for example, <?xml version='1.0'?> ).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0