To this end, I was curious how you could take the generated classes and Dataset) option, which requires using Datasets, instead of leaner, C# classes.To test this theory out, I created a separate “book” example / VS solution that demonstrates how to do this.hey chua I am using C# and I am using the Validation Event Handler, it works fine but this is what error it returns "The 'ID' attribute has an invalid value according to its data type. "Shailendra Batham" wrote: hi guys I need your suggestions / opinion for doing this the right way. if the Attribute is missing or invalid in the following element then it should say ID attribute invalid for "Watch" Element.
The element declarations in an XML Schema can specify the namespace/s of the elements in the XML document.
Then we run the code above to test whether the C# classes were populated with data that does not violate the original XSD schema the code was created from.
Since 2 of our fields violate the XSD here, the result we get in this example is: Simple, but an easy way to verify that the actual usage of the C# code / data followed the originally designed XSD schema file(s).
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.
If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.