Probably needed too to avoid the same problem on PIs, Daniel


svn path=/trunk/; revision=3636
diff --git a/parser.c b/parser.c
index e095ab8..6cc8277 100644
--- a/parser.c
+++ b/parser.c
@@ -10141,6 +10141,7 @@
 			    "PP: Parsing PI\n");
 #endif
 		    xmlParsePI(ctxt);
+		    ctxt->checkIndex = 0;
 		} else if ((cur == '<') && (next == '!') &&
 		    (ctxt->input->cur[2] == '-') &&
 		    (ctxt->input->cur[3] == '-')) {