If some error occurs during parsing the XML document (stored in file or RAM), the library function that caused error (xmlParseFile() or xmlParseDoc()) prints the errors on the stdout. Is there a way to force libxml not to print anything?
If some error occurs during parsing the XML document (stored in file or RAM), the library function that caused error (xmlParseFile() or xmlParseDoc()) prints the errors on the stdout. Is there a way to force libxml not to print anything?
You can redirect stdout. It seems more likely that the error is printed to stderr though.
If you understand what you're doing, you're not learning anything.
You mean like read the manual?
Like say initialising it with your own error handler?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Found: xmlReadDoc() should be used instead of xmlParseDoc() and the option for suppressing can be specified as last argument.