Generates XML to stdout