This documentation is archived and is not being maintained.

XmlNode Class

Represents a single node in the XML document.

For a list of all members of this type, see XmlNode Members.

      Derived classes

[Visual Basic]
MustInherit Public Class XmlNode
   Implements ICloneable, IEnumerable, IXPathNavigable
public abstract class XmlNode : ICloneable, IEnumerable,
public __gc __abstract class XmlNode : public ICloneable,
   IEnumerable, IXPathNavigable
public abstract class XmlNode implements ICloneable, IEnumerable,

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This class implements the W3C Document Object Model (DOM) Level 1 Core and the Core DOM Level 2. The DOM is an in-memory (cache) tree representation of an XML document. XmlNode is the base class in the .NET implementation of the DOM. It supports XPath selections and provides editing capabilities. The XmlDocument class extends XmlNode and represents an XML document. You can use XmlDocument to load and save XML data. It also includes methods for node creation. See XML Document Object Model (DOM) for more information.


Namespace: System.Xml

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

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

See Also

XmlNode Members | System.Xml Namespace | Create New Nodes in the DOM | SelectNodes