reformat xml