Update the xml file