diff options
Diffstat (limited to 'server/src/saxparser.cc')
-rw-r--r-- | server/src/saxparser.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/saxparser.cc b/server/src/saxparser.cc index be7a541..4a69a6c 100644 --- a/server/src/saxparser.cc +++ b/server/src/saxparser.cc @@ -112,6 +112,8 @@ int SAXParser::parse() bool SAXParser::parse(char *data, size_t size) { + printf("parse %d bytes\n", size); + bufferbytes = size; totalbytes += bufferbytes; @@ -129,7 +131,7 @@ bool SAXParser::parse(char *data, size_t size) } } - printf("Got END_OF_DOCUMENT [%s] at %ld\n", outertag.c_str(), XML_GetCurrentByteIndex(p)); + if(done) printf("Got END_OF_DOCUMENT [%s] at %ld\n", outertag.c_str(), XML_GetCurrentByteIndex(p)); return done; } |