Writes XML to stdout