This commit is contained in:
Edgar R. Sandi 2016-10-15 23:58:35 -03:00 committed by Joe Watkins
parent d2b03119e2
commit 319822b050

View File

@ -593,13 +593,13 @@ has been defined and none can be detected */
}
#endif
if (parser->parser->lastError.level >= XML_ERR_WARNING) {
return 0;
}
error = xmlParseChunk(parser->parser, (char *) data, data_len, is_final);
if (!error) {
return 1;
} else if (parser->parser->lastError.level > XML_ERR_WARNING ){
return 0;
} else {
return 1;
}
}