Save modified XML back to disk