...
|
...
|
@@ -458,6 +458,7 @@ int cli_msxml_parse_document(cli_ctx *ctx, xmlTextReaderPtr reader, const struct
|
458
|
458
|
#endif
|
459
|
459
|
|
460
|
460
|
/* Error Handler */
|
|
461
|
+ //xmlTextReaderSetErrorHandler(reader, NULL, NULL); /* xml default handler */
|
461
|
462
|
xmlTextReaderSetErrorHandler(reader, msxml_error_handler, NULL);
|
462
|
463
|
|
463
|
464
|
/* Main Processing Loop */
|
...
|
...
|
@@ -517,6 +518,12 @@ int cli_msxml_parse_document(cli_ctx *ctx, xmlTextReaderPtr reader, const struct
|
517
|
517
|
if (ret == CL_ETIMEOUT || ret == CL_BREAK)
|
518
|
518
|
return CL_SUCCESS;
|
519
|
519
|
|
|
520
|
+ /* important but non-critical suppression */
|
|
521
|
+ if (ret == CL_EPARSE) {
|
|
522
|
+ cli_dbgmsg("cli_msxml_parse_document: suppressing parsing error to continue scan\n");
|
|
523
|
+ return CL_SUCCESS;
|
|
524
|
+ }
|
|
525
|
+
|
520
|
526
|
return ret;
|
521
|
527
|
}
|
522
|
528
|
|