Validating xml against xsd net

posted by | Leave a comment

But still it will be good if i get to see good example where i can validate the XML against XSD and loop throught the XML element. I am able to validate the XML against XSD with the above method but how can i find out the mandatory columns in the table with in the schema file.

I know there are few properties minoccurence,maxoccurence (or) Required.

Set the Xml Reader Settings object's Validation Type property to the value Validation Type.

validating xml against xsd net-19

If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.

I want to validate the XML element with the XSD to make sure if they are mandatory columns.

Let me know if you have any idea in performing this type of validation.

Failure to register a method with Validation Event Handler causes an exception (Xml Exception) to be thrown when the XML document is found to be invalid or missing.

After setting the Validation Type property, the Schema's property and Validation Event Handler of the Xml Reader Settings object, we are ready to create a validating Xml Reader.

Leave a Reply

Sex dating south webxam