XmlNodeType Enumeration
Specifies the type of node.
Assembly: System.Xml (in System.Xml.dll)
| Member name | Description | |
|---|---|---|
| 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, # ). | |
| 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'?> ). |
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