Reformat XML