Update xml file