Export (0) Print
Expand All
1 out of 6 rated this helpful - Rate this topic

XmlDataDocument Class

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

Namespace: System.Xml
Assembly: System.Data (in system.data.dll)

public class XmlDataDocument : XmlDocument
public class XmlDataDocument extends XmlDocument
public class XmlDataDocument extends XmlDocument

This class extends 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 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.

System.Object
   System.Xml.XmlNode
     System.Xml.XmlDocument
      System.Xml.XmlDataDocument
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.