XML: Remove error messages from stderr

This commit is contained in:
Felipe Zimmerle
2019-11-25 09:19:34 -03:00
parent 42a16c71cf
commit 05e9e7cf31
3 changed files with 9 additions and 0 deletions

View File

@@ -99,6 +99,9 @@ bool XML::processChunk(const char *buf, unsigned int size,
error->assign("XML: Failed to create parsing context.");
return false;
}
xmlSetGenericErrorFunc(m_data.parsing_ctx, null_error);
return true;
}

View File

@@ -53,6 +53,10 @@ class XML {
static xmlParserInputBufferPtr unloadExternalEntity(const char *URI,
xmlCharEncoding enc);
static void null_error(void *ctx, const char *msg, ...) {
}
xml_data m_data;
private: