Cleans and formats XML.