merge fix for save file error
diff --git a/xmltest.cpp b/xmltest.cpp
index 06ac9fc..3fef541 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -1433,6 +1433,14 @@
XMLPrinter printer;
newElement->Accept( &printer );
}
+ {
+ // Issue 302. Clear errors from LoadFile/SaveFile
+ XMLDocument doc;
+ doc.SaveFile( "./no/such/path/pretty.xml" );
+ XMLTest( "Issue 302. Fail to save", doc.ErrorName(), "XML_ERROR_FILE_COULD_NOT_BE_OPENED" );
+ doc.SaveFile( "./resources/out/compact.xml", true );
+ XMLTest( "Issue 302. Subsequent success in saving", doc.ErrorName(), "XML_SUCCESS" );
+ }
// ----------- Performance tracking --------------
{