Xml manipulation in scala (Change existing attributes and write xml to file)