diff --git a/samples/DOMPrint/DOMPrint.cpp b/samples/DOMPrint/DOMPrint.cpp
index 5430d89abab24da8e143024a467a3e07412cf6b7..94980f1f6149ff492ce0d8db5adead883c194d36 100644
--- a/samples/DOMPrint/DOMPrint.cpp
+++ b/samples/DOMPrint/DOMPrint.cpp
@@ -488,7 +488,7 @@ int main(int argC, char* argV[])
 			// StdOutFormatTarget prints the resultant XML stream
 			// to stdout once it receives any thing from the serializer.
 			//
-			StdOutFormatTarget *myFormTarget = new StdOutFormatTarget();
+			XMLFormatTarget *myFormTarget = new StdOutFormatTarget();
 
 			// get the DOM representation
 			DOMNode                     *doc = parser->getDocument();