Replace InitDocument() with Clear() and make it part of the API.
diff --git a/tinyxml2.h b/tinyxml2.h
index d04c5e4..cf60a58 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1532,6 +1532,9 @@
     }

     /// If there is an error, print it to stdout.

     void PrintError() const;

+    

+    /// Clear the document, resetting it to the initial state.

+    void Clear();

 

     // internal

     char* Identify( char* p, XMLNode** node );

@@ -1546,7 +1549,6 @@
 private:

     XMLDocument( const XMLDocument& );	// not supported

     void operator=( const XMLDocument& );	// not supported

-    void InitDocument();

 

     bool        _writeBOM;

     bool        _processEntities;