Add support to XMLDocument to save file in compact mode.
diff --git a/tinyxml2.h b/tinyxml2.h
index e1c22c5..18555ca 100644
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1075,7 +1075,7 @@
 		Returns XML_NO_ERROR (0) on success, or

 		an errorID.

 	*/

-	int SaveFile( const char* filename );

+	int SaveFile( const char* filename, bool compact = false );

 

 	/**

 		Save the XML file to disk. You are responsible

@@ -1084,7 +1084,7 @@
 		Returns XML_NO_ERROR (0) on success, or

 		an errorID.

 	*/

-	int SaveFile( FILE* );

+	int SaveFile( FILE* fp, bool compact = false );

 

 	bool ProcessEntities() const						{ return processEntities; }