System.Xml.XmlDocument Class

Represents an XML document.

See Also: XmlDocument Members


public class XmlDocument : XmlNode, IHasXmlChildNode


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 System.Xml.XPath.IXPathNavigable interface it can also be used as the source document for the System.Xml.Xsl.XslTransform class.

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

For more information, see [<topic://cpconXMLDocumentObjectModelDOM>].


Exceptions raised as a result of using the System.Xml.XmlDocument class, such as the System.Xml.XmlException class may contain sensitive information that should not be exposed in untrusted scenarios. Exceptions should be properly handled so that this sensitive information is not exposed in untrusted scenarios.


Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0,,