Formatted XML output to suit Elemental expectation.