Added depth as constructor argument to XMLPrinter. This way, XML files that are not written with XMLDocument can be properly indented.
Removed unused forward declaration
diff --git a/tinyxml2.h b/tinyxml2.h
index 72dc801..31f2ec7 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -125,11 +125,9 @@
 class XMLElement;

 class XMLAttribute;

 class XMLComment;

-class XMLNode;

 class XMLText;

 class XMLDeclaration;

 class XMLUnknown;

-

 class XMLPrinter;

 

 /*

@@ -1884,7 +1882,7 @@
     	If 'compact' is set to true, then output is created

     	with only required whitespace and newlines.

     */

-    XMLPrinter( FILE* file=0, bool compact = false );

+    XMLPrinter( FILE* file=0, bool compact = false, int depth = 0 );

     ~XMLPrinter()	{}

 

     /** If streaming, write the BOM and declaration. */