specify version of xml dependency
resolve script vs flags confusion and remove quotes which are no longer necessary
use tabs and windows newlines in xml