fix bug #45996 (libxml2 2.7 causes breakage with character data in xml_parse())

This commit is contained in:
Rob Richards 2009-01-11 12:00:30 +00:00
parent e35b825990
commit 6c00dcede6

View File

@ -482,6 +482,10 @@ XML_ParserCreate_MM(const XML_Char *encoding, const XML_Memory_Handling_Suite *m
parser->parser->charset = XML_CHAR_ENCODING_NONE;
#endif
#if LIBXML_VERSION >= 20703
xmlCtxtUseOptions(parser->parser, XML_PARSE_OLDSAX);
#endif
parser->parser->replaceEntities = 1;
parser->parser->wellFormed = 0;
if (sep != NULL) {