<h4>How Do I...Load XML data into an XmlDataDocument?</h4>
<div class="indent" style="width:660">
This sample illustrates how to load XML into the XmlDataDocument class. This class extends the XmlDocument class, allowing structured data to be stored,
retrieved, and manipulated through a relational DataSet. Also see the <a href="XmlDataSet.aspx">How Do I...Use XML and the DataSet class?</a> topic.
The XmlDataDocument class provides an XML API onto loaded XML data by extending the XmlDocument (W3C DOM) class.
(See <a target=content href="DOMInterfaceXmlDocument.aspx">How Do I...Load and use the XmlDocument (W3C DOM)?</a>) and has a close affiliation with the DataSet
class, which provides a relational view onto the loaded XML data.
This combination allows for components to mix XML and relational views of the same underlying data, irrespective of the source of the
data. As detailed in later topics, there are differences between these views. Most notable is that XML data that does not map to the relational view cannot
be accessed via the relational objects (Tables and Rows). It is however, still possible to easily move from a relational row to the equivalent XML element