Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating a DataSet against an XSD
Message
De
20/04/2006 16:07:00
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Validating a DataSet against an XSD
Divers
Thread ID:
01115126
Message ID:
01115126
Vues:
120
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform