Read from and write to xml file using xstream