output totals as xml