update XML file