add option xml-out, write only xml to stdout