These two ingredients have completely different functions. Xanthan gum is a thickening and binding ingredient used in recipes. Baking soda on the other hand acts as a leavening agent and stabilizer.