how many ways to update a xml file