Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlNodeType Enumeration

 

Specifies the type of node.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public enum XmlNodeType

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

Entity

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

EntityReference

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

None

This is returned by the 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'?> ).

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft