Adding codes for xml