Add terms list to output xml