Edit XML file