add a printing test
diff --git a/xmltest.cpp b/xmltest.cpp
index 152c588..42ecd80 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -987,6 +987,19 @@
 		XMLTest( "Tracking unused elements", true, ele != 0, false );

 	}

 

+

+	{

+		const char* xml = "<parent><child>abc</child></parent>";

+		XMLDocument doc;

+		doc.Parse( xml );

+		XMLElement* ele = doc.FirstChildElement( "parent")->FirstChildElement( "child");

+

+		XMLPrinter printer;

+		ele->Accept( &printer );

+		XMLTest( "Printing of sub-element", "<child>abc</child>\n", printer.CStr(), false );

+	}

+

+

 	// ----------- Performance tracking --------------

 	{

 #if defined( _MSC_VER )