System.Xml Namespace


.NET Framework Class Library
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)
Syntax

Visual Basic (Declaration)
<HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True)> _
Public Class XmlDataDocument _
    Inherits XmlDocument
Visual Basic (Usage)
Dim instance As XmlDataDocument
C#
[HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true)]
public class XmlDataDocument : XmlDocument
Visual C++
[HostProtectionAttribute(SecurityAction::LinkDemand, Synchronization = true)]
public ref class XmlDataDocument : public XmlDocument
JScript
public class XmlDataDocument extends XmlDocument
Remarks

NoteNote:

The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: Synchronization. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

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.

Inheritance Hierarchy

System..::.Object
  System.Xml..::.XmlNode
    System.Xml..::.XmlDocument
      System.Xml..::.XmlDataDocument
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.
Platforms

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.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
See Also

Reference

Tags :


Community Content

Thomas Lee
good read

This is great.


[tfl - 15 06 09] removing non-content

Tags :

Page view tracker