Added formatting for xml