Update XML file