Updating build file to write output to an XML file