Merge branch 'master' of https://github.com/leethomason/tinyxml2
diff --git a/tinyxml2.h b/tinyxml2.h
index b15da9e..e176ec0 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1574,6 +1574,7 @@
     //void LinkAttribute( XMLAttribute* attrib );

     char* ParseAttributes( char* p, int& curLineNum );

     static void DeleteAttribute( XMLAttribute* attribute );

+    XMLAttribute* CreateAttribute();

 

     enum { BUF_SIZE = 200 };

     int _closingType;

@@ -1751,6 +1752,10 @@
 

     void SetError( XMLError error, const char* str1, const char* str2, int lineNum );

 

+    void ClearError() {

+        SetError(XML_SUCCESS, 0, 0, 0);

+    }

+

     /// Return true if there was an error parsing the document.

     bool Error() const {

         return _errorID != XML_SUCCESS;