Added option WRITE_XML_FILE for not writing .xml files