How to validate xmlschema in xml document?

Showing Answers 1 - 7 of 7 Answers

Hari

  • Dec 30th, 2005
 

One can validate the XML document againest a given schema using the .Net class under the package System.Xml.Schema; like using  XMLSchemaValidator and XmlSchema.

  Was this answer useful?  Yes

Archana

  • Dec 31st, 2005
 

Can u give some example?

        thank u

  Was this answer useful?  Yes

Raju

  • Feb 2nd, 2006
 

One can validate the XML document againest a given schema using the .Net class under the package System.Xml.Schema; like using  XMLSchemaValidator and XmlSchema.

  Was this answer useful?  Yes

veer

  • Oct 6th, 2006
 

can you give any real time example

  Was this answer useful?  Yes

AnwarCool

  • May 8th, 2008
 

We can use XmlReaderSettings Class and set validation type to schema and then create a event handler to the handle the validation erros.

Below link has a good and simpale example

http:// aspalliance . com/1143_CodeSnip_Validating_XML_Data_using_the_XML_Schema_Definition . 2

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions