XML Validation with XSD along with Custom Exception

This article describes the below items:

XML data validation with XSD like XML TAGS provided are present and appropriate with respect to XSD
How to write custom validations like check to see email ID is valid or not
How to generate XSD from XML
How to generate Custom Error, when XML data validation fails
How to write regular expression in XSD
Let's get into a sample with the below steps:

Step 1: Define XML
Step 2: Generate/Define XSD
Step 3: Write code to validate XML with XSD
Step 4: Handle Exception in by defining Custom Exception
Posted by: Teena
On 10 Nov 2011 | Views: 1468 | Categories: XML

Post your comments


Other lins

.Net Techies
Other lins