Reformat xml