You have to use regular XML Schema validation, XmlValidatingReader
specifically to perform this job. In most cases the dataset itself will crib
if there are certain errors, but a dataset is a bit more forgiving than
XmlValidatingReader.
--
- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book -
http://tinyurl.com/9bync
----------------------------------------------------------------------------
"ad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I use a strong type dataset(as ds below) to read a xml file.
> How can I determinate if the xml file is validated according the xsd of
> the
> strong type dataset?
>
> **********************************************************
> Health ds = new Health();
> ds.ReadXml(sFileName);
>
>