Reformat XML resources