diff -r 58415f6342ee SAX2.c --- a/SAX2.c Wed Sep 26 10:21:06 2012 +0800 +++ b/SAX2.c Fri Sep 28 13:40:08 2012 +0200 @@ -411,6 +411,7 @@ xmlParserInputPtr input = NULL; xmlCharEncoding enc; int oldcharset; + int oldprogressive; /* * Ask the Entity resolver to load the damn thing @@ -432,6 +433,7 @@ oldinputMax = ctxt->inputMax; oldinputTab = ctxt->inputTab; oldcharset = ctxt->charset; + oldprogressive = ctxt->progressive; ctxt->inputTab = (xmlParserInputPtr *) xmlMalloc(5 * sizeof(xmlParserInputPtr)); @@ -442,11 +444,13 @@ ctxt->inputMax = oldinputMax; ctxt->inputTab = oldinputTab; ctxt->charset = oldcharset; + ctxt->progressive = oldprogressive; return; } ctxt->inputNr = 0; ctxt->inputMax = 5; ctxt->input = NULL; + ctxt->progressive = 0; xmlPushInput(ctxt, input); /* @@ -487,6 +491,7 @@ ctxt->inputMax = oldinputMax; ctxt->inputTab = oldinputTab; ctxt->charset = oldcharset; + ctxt->progressive = oldprogressive; /* ctxt->wellFormed = oldwellFormed; */ } }