Export (0) Print
Expand All

XmlDataDocument Class

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

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

System.Object
   System.Xml.XmlNode
      System.Xml.XmlDocument
         System.Xml.XmlDataDocument

[Visual Basic]
Public Class XmlDataDocument
   Inherits XmlDocument
[C#]
public class XmlDataDocument : XmlDocument
[C++]
public __gc class XmlDataDocument : public XmlDocument
[JScript]
public class XmlDataDocument extends XmlDocument

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.

Remarks

This class extends XmlDocument. It enables you to load either relational data or XML data and manipulate that data using the W3C Document Object Model (DOM). The DOM presents data as a hierarchy of node objects. Because XmlDataDocument implements the IXPathNavigable interface it can also be used as the source document for the 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 ReadXmlSchema to build a relational mapping. The XML data can then be loaded using Load or LoadXml.

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

Requirements

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

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

See Also

XmlDataDocument Members | System.Xml Namespace

Show:
© 2014 Microsoft