Using C++11, XMLUtil::ToErrorName(XMLError) returns the name of error type
diff --git a/xmltest.cpp b/xmltest.cpp
index 55b597d..ef57f7e 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -1222,6 +1222,9 @@
 		XMLDocument doc;

 		XMLError error = doc.LoadFile( "resources/empty.xml" );

 		XMLTest( "Loading an empty file", XML_ERROR_EMPTY_DOCUMENT, error );

+#if __cplusplus > 199711LL

+		XMLTest( "Loading an empty file and ErrorName as string", "XML_ERROR_EMPTY_DOCUMENT", XMLUtil::ToErrorName(error).c_str() );

+#endif

 	}

 

 	{