Name

XmlNodeType

Synopsis

This enumeration contains identifiers for node types. All DOM Core Level 2 types are included.

public enum XmlNodeType {
   None = 0,
   Element = 1,
   Attribute = 2,
   Text = 3,
   CDATA = 4,
   EntityReference = 5,
   Entity = 6,
   ProcessingInstruction = 7,
   Comment = 8,
   Document = 9,
   DocumentType = 10,
   DocumentFragment = 11,
   Notation = 12,
   Whitespace = 13,
   SignificantWhitespace = 14,
   EndElement = 15,
   EndEntity = 16,
   XmlDeclaration = 17
}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) XmlNodeType

Returned By

XmlNode.NodeType, XmlReader.{MoveToContent( ), NodeType}

Passed To

XmlDocument.CreateNode( ), XmlTextReader.XmlTextReader( ), XmlValidatingReader.XmlValidatingReader( )

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.