By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,225 Members | 2,187 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,225 IT Pros & Developers. It's quick & easy.

Validating XML types before (as) Reading into Dataset

P: n/a
I would like to be able to validate an XML file before it is (or as it is
being) read into a DataSet.

I have a class that dynamically creates a DataSet with typed columns based
on another "record definition" class. Then I use this DataSet to write and
read data to and from an XML file

My issue is that I as I make revisions to my application and change the type
of data a certain (DataSet Column) node contains, It causes my DataSet to
chock when it reads the (now invalid) data. For example, If I initially
specify a DataSet Table Column as String and save the table to XML and then
change it to Int and try to read the XML file back into the DataSet, it
generates an error. It would be great to be able to specify a default value
for any invalid data that is contained within the XML file I am reading

What are my options in this regard?


Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.