XmlDataDocument
Class
Definition
Allows structured data to be stored, retrieved, and manipulated through a relational DataSet.
[System.Obsolete("XmlDataDocument class will be removed in a future release.")]
public class XmlDataDocument : System.Xml.XmlDocument
- Inheritance
- Attributes
Inherited Members
System.Object
System.Xml.XmlDocument
System.Xml.XmlNode
Remarks
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.
Constructors
| XmlDataDocument() |
Initializes a new instance of the XmlDataDocument class. |
| XmlDataDocument(DataSet) |
Initializes a new instance of the XmlDataDocument class with the specified DataSet. |
Properties
| DataSet |
Gets a DataSet that provides a relational representation of the data in the |
Methods
| CloneNode(Boolean) |
Creates a duplicate of the current node. |
| CreateElement(String, String, String) |
Creates an element with the specified Prefix, LocalName , and NamespaceURI. |
| CreateEntityReference(String) |
Creates an XmlEntityReference with the specified name. |
| CreateNavigator(XmlNode) |
Creates a new XPathNavigator object for navigating this document. The |
| GetElementById(String) |
Gets the XmlElement with the specified ID. This method is not supported by the XmlDataDocument class. Calling this method throws an exception. |
| GetElementFromRow(DataRow) |
Retrieves the XmlElement associated with the specified DataRow. |
| GetElementsByTagName(String) |
Returns an XmlNodeList containing a list of all descendant elements that match the specified Name. |
| GetRowFromElement(XmlElement) |
Retrieves the DataRow associated with the specified XmlElement. |
| Load(Stream) |
Loads the |
| Load(TextReader) |
Loads the |
| Load(String) |
Loads the |
| Load(XmlReader) |
Loads the |