How to determinate a xml file vaildated by strong type dataset

A

ad

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);
 
S

Sahil Malik [MVP]

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.
 
A

ad

How can I do?
Can you give me a example?


Sahil Malik said:
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
-------------------------------------------------------------------------- --
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top