This documentation is archived and is not being maintained.

XmlDocument Class

Represents an XML document.

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


[Visual Basic]
Public Class XmlDocument
   Inherits XmlNode
public class XmlDocument : XmlNode
public __gc class XmlDocument : public XmlNode
public class XmlDocument extends XmlNode

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 and enables the navigation and editing of this document. Because XmlDocument implements the IXPathNavigable interface it can also be used as the source document for the XslTransform class.

The XmlDataDocument class extends XmlDocument and allows structured data to be stored, retrieved, and manipulated through a relational DataSet. This class allows components to mix XML and relational views of the underlying data.

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

XmlDocument Members | System.Xml Namespace | Create New Nodes in the DOM | XmlNodeChangedEventHandler