From dc6a4cf4309c841d621352ee14c5b2de82aceff3 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Mon, 7 Aug 2006 12:51:11 +0100 Subject: [PATCH] Fix bug: in a PI such as , we got into an incorrect state on the second ?. This is now properly handled. --- src/libStreamedXML/Parser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libStreamedXML/Parser.cpp b/src/libStreamedXML/Parser.cpp index f91b79a..5047ceb 100644 --- a/src/libStreamedXML/Parser.cpp +++ b/src/libStreamedXML/Parser.cpp @@ -314,9 +314,12 @@ doBuffer: callback->PI(buffer2, buffer); buffer.clear(); state = StateNone; + } else if(ch == '?') { + buffer += L'?'; } else { buffer += L'?'; buffer += ch; + state = StatePIData; } break;