Allow to output to stdout with the - argument.

Fixes issue 351.
Modify the XmpReportImpl and XmlReportImpl to work on PrintWriter only.