Allows structured data to be stored, retrieved, and manipulated through a relational DataSet.
Namespace:
System.Xml
Assembly:
System.Data (in System.Data.dll)
Visual Basic (Declaration)
<HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True)> _
Public Class XmlDataDocument _
Inherits XmlDocument
Dim instance As XmlDataDocument
[HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true)]
public class XmlDataDocument : XmlDocument
[HostProtectionAttribute(SecurityAction::LinkDemand, Synchronization = true)]
public ref class XmlDataDocument : public 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Reference