fix error string output when there is no formatting
diff --git a/xmltest.cpp b/xmltest.cpp
index 91494ec..bb58986 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -567,6 +567,10 @@
 		XMLDocument doc;

 		doc.Parse( error );

 		XMLTest( "Bad XML", XML_ERROR_PARSING_ATTRIBUTE, doc.ErrorID() );

+		const char* errorStr = doc.ErrorStr();

+		XMLTest("Formatted error string",

+			"Error=XML_ERROR_PARSING_ATTRIBUTE ErrorID=8 (0x8) Line number=3: XMLElement name=wrong",

+			errorStr);

 	}

 

 	{

@@ -1160,6 +1164,12 @@
 		XMLDocument doc;

 		doc.Parse( str );

 		XMLTest( "Empty document error", XML_ERROR_EMPTY_DOCUMENT, doc.ErrorID() );

+

+		// But be sure there is an error string!

+		const char* errorStr = doc.ErrorStr();

+		XMLTest("Error string should be set",

+			"Error=XML_ERROR_EMPTY_DOCUMENT ErrorID=15 (0xf) Line number=0",

+			errorStr);

 	}

 

 	{