Added method to format exported xml.