leethomason/tinyxml2 — pull request #104 by Vasily-Biryukov (2013-04-20 08:24:54+00:00)
Title: LoadFile() returns XML_NO_ERROR for empty documents

The XMLDocument::LoadFile(FILE*) function returns XML_ERROR_EMPTY_DOCUMENT only if the specified file have UTF-8 BOM. For really empty files it returns the last stored error, typically XML_NO_ERROR.

Now LoadFile() returns XML_ERROR_EMPTY_DOCUMENT for empty files.