[OSM-dev] Making libxml ignore errors

Nic Roets nroets at gmail.com
Thu Mar 11 22:06:35 GMT 2010


Hello,

There are some bad Xml characters in the planet:

<tag k="name" v="Meycauayan City Northbound Entry Point

Does anyone perhaps know how to get libxml to either not detect these
errors, or how to continue after parsing them ?

I can catch them with my own handler, but I can't see a clear error function.
void HandleXmlErr (void *, const char *msg, xmlParserSeverities,
xmlTextReaderLocatorPtr)
{
  fputs (msg, stderr);
}
...
  xmlTextReaderSetErrorHandler (xml, HandleXmlErr, NULL);




More information about the dev mailing list