The
.NET framework provides a full complement
of classes for XML manipulation, which are found in the
System.Xml
family of namespaces (see Table 17-5).
These classes offer XML-specific functionality that
isn’t directly available through the ADO.NET
objects. For example, if you load a serialized
DataSet
using an XML file and XSD schema, you may
not receive a warning if the XML document violates the schema;
typically, you’ll just lose some of the data. In
cases in which you aren’t sure if the XML file fits
a given schema (or, in other words, you aren’t sure
that the data in an XML file pertains to a given table or a given
version of that table), you can run through the XML file with the
XmlValidatingReader
before loading it into the
DataSet
.