XML validator (checks whether given xml is correct or broken)

Go To StackoverFlow.com

0

i have used libxml2.Here when i am getting an XML data as a string i am unable to check whether it is a valid xml or a broken xml.so can anyone let me know how to check for the validation of xml in c using libxml2 or can suggest any more way to check for the validation.

2012-04-04 07:29
by Subrat nayak.


0

Have you tried the W3C Validator?

2012-04-04 07:32
by user1301428
but w3c is for online,but i want to check it in my project.... - Subrat nayak. 2012-04-04 07:55
@Subratnayak if you want to use libxml2 you can have a look at this example: http://knol2share.blogspot.it/2009/05/validate-xml-against-xsd-in-c.htm - user1301428 2012-04-07 16:59
Ads