I think I might have found a minor bug in xmlreader.c When reaching the end of a file, reader->mode is not correct. This patch leave reader->mode=XML_TEXTREADER_MODE_EOF and set reader->state to XML_TEXTREADER_DONE Julien
Attachment:
xmlreader.patch
Description: xmlreader.patch