Update XML api format updated as per Robert's request