corrections to ReadXMLFiles.groovy