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;