Scala manage xml files.