Test Clear() clears the error
diff --git a/xmltest.cpp b/xmltest.cpp
index 4808b2b..7f2b22a 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -1549,6 +1549,16 @@
         doc.Clear();

         XMLTest( "Document Clear()'s", true, doc.NoChildren() );

     }

+

+    {

+        XMLDocument doc;

+        XMLTest( "No error initially", false, doc.Error() );

+        XMLError error = doc.Parse( "This is not XML" );

+        XMLTest( "Error after invalid XML", true, doc.Error() );

+        XMLTest( "Error after invalid XML", error, doc.ErrorID() );

+        doc.Clear();

+        XMLTest( "No error after Clear()", false, doc.Error() );

+    }

     

 	// ----------- Whitespace ------------

 	{