Updating the xml file