System.Xml.XmlDataDocument Class

Allows structured data to be stored, retrieved, and manipulated through a relational System.Data.DataSet.

See Also: XmlDataDocument Members

Syntax

public class XmlDataDocument : XmlDocument

Remarks

This class extends System.Xml.XmlDocument. It enables you to load either relational data or XML data and manipulate that data using the World Wide Web Consortium (W3C) Document Object Model (DOM). The DOM presents data as a hierarchy of node objects. Because XmlDataDocument implements the System.Xml.XPath.IXPathNavigable interface, it can also be used as the source document for the System.Xml.Xsl.XslTransform class.

XmlDataDocument has a close affiliation with the DataSet class, which provides a relational view of the loaded XML data. Any changes made to the XmlDataDocument are reflected in the DataSet and vice versa.

To load a DataSet with XML data, use System.Data.DataSet.ReadXmlSchema(XmlReader) to build a relational mapping. The XML data can then be loaded using XmlDataDocument.Load(string) or XmlDocument.LoadXml(string).

To load relational data, specify the DataSet containing the relational data as the parameter in the XmlDataDocument.#ctor constructor.

Requirements

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