Refactored the style of xml.