To make xanthan gum , workers deliberately add a kind of bacterium , Xanthomonas campestris , to glucose or sucrose . It is produced by fermentation of glucose , sucrose , or lactose by the Xanthomonas campestris bacterium .