I am using libxml2 library to parse a XML file on my box.
Every thing seems to work fine with libxml2 except for validation of the XML file passed.
Basically when you have a valid XML file as below all APIs work fine.
But when the XML is corrupted as below, the xmlParseFile() API just crashes.
Is there a way to validate the XML file either using libxml2 or otherwise?
Hope libxml2 library is famous enough in this part of the world.. :)