added new test for BOM, and added good defaults for NewDeclaration
diff --git a/xmltest.cpp b/xmltest.cpp
index a88d1bc..a87b75e 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -813,6 +813,18 @@
 		ele = docH.FirstChildElement( "none" ).FirstChildElement( "element" ).ToElement();

 		XMLTest( "Handle, dne, const", false, ele != 0 );

 	}

+	{

+		// Default Declaration & BOM

+		XMLDocument doc;

+		doc.InsertEndChild( doc.NewDeclaration() );

+		doc.SetBOM( true );

+		

+		XMLPrinter printer;

+		doc.Print( &printer );

+

+		static const char* result  = "\xef\xbb\xbf<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

+		XMLTest( "BOM and default declaration", printer.CStr(), result, false );

+	}

 

 	

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