Reformat the XML block