Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating a DataSet against an XSD
Message
From
20/04/2006 16:07:00
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Validating a DataSet against an XSD
Miscellaneous
Thread ID:
01115126
Message ID:
01115126
Views:
119
I was under the impression that I could validate a populated DataSet against an XSD in .NET, but now that I want to do it, I can't find any reference to doing so. I thought there was a DataSet method.

I could use the string DataSet.GetXml() method and then validate the XML string, but I thought that there was a way to validate a DataSet against a XML schema in situ, right in the DataSet, without converting it to a string.

If I create a DataSet from an XSD using the DataSet.ReadXmlSchema method, do I even need to check that the DataSet conforms to the XSD? Will the DataSet throw exceptions if I try to populate it with values that violate the XSD or at some later point when I call AcceptChanges()?

Thanks for any light anyone can cast at me.
David S. Alexander
Kettley Publishing
20271 SW Birch Street, 2nd Floor
Newport Beach, CA 92660-1752
Next
Reply
Map
View

Click here to load this message in the networking platform