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