Fixed: LoadFile() returns XML_NO_ERROR for empty documents.

This commit is contained in:
Vasily Biryukov
2013-04-20 14:12:33 +06:00
parent c510a8c76e
commit 1cfafd0d24
3 changed files with 8 additions and 0 deletions

View File

@@ -1158,6 +1158,13 @@ int main( int argc, const char ** argv )
}
{
XMLDocument doc;
XMLError error = doc.LoadFile( "resources/empty.xml" );
XMLTest( "Loading an empty file", XML_ERROR_EMPTY_DOCUMENT, error );
}
// ----------- Performance tracking --------------
{
#if defined( _MSC_VER )