<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11-beta-23409" />

XmlNodeType

public enum XmlNodeType
Specifies the type of node.

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

CDATA = 4

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

Comment = 8

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

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

A document fragment.

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

Element = 1

An element (for example, <item> ).

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

EndEntity = 16

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

Entity = 6

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

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

None = 0

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

Notation = 12

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

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

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

Text = 3

The text content of a node.

White space between markup.

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