Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 XmlNodeType Enumeration
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
XmlNodeType Enumeration

Specifies the type of node.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)
Visual Basic (Declaration)
Public Enumeration XmlNodeType
Visual Basic (Usage)
Dim instance As XmlNodeType
C#
public enum XmlNodeType
Visual C++
public enum class XmlNodeType
JScript
public enum XmlNodeType
Member nameDescription
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifNone This is returned by the XmlReader if a Read method has not been called.
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifElement An element (for example, <item> ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifAttribute An attribute (for example, id='123' ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifText The text content of a node.
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifCDATA A CDATA section (for example, <![CDATA[my escaped text]]> ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifEntityReference A reference to an entity (for example, &num; ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifEntity An entity declaration (for example, <!ENTITY...> ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifProcessingInstruction A processing instruction (for example, <?pi test?> ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifComment A comment (for example, <!-- my comment --> ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifDocument A document object that, as the root of the document tree, provides access to the entire XML document.
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifDocumentType The document type declaration, indicated by the following tag (for example, <!DOCTYPE...> ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifDocumentFragment A document fragment.
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifNotation A notation in the document type declaration (for example, <!NOTATION...> ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifWhitespace White space between markup.
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifSignificantWhitespace White space between markup in a mixed content model or white space within the xml:space="preserve" scope.
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifEndElement An end element tag (for example, </item> ).
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifEndEntity Returned when XmlReader gets to the end of the entity replacement as a result of a call to ResolveEntity.
92tfe8zh.CFW(en-us,VS.90).gif92tfe8zh.xna(en-us,VS.90).gifXmlDeclaration The XML declaration (for example, <?xml version='1.0'?> ).

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 2.0, 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker