Xanthan gum and gelatin are not the same thing. Gelatin is an animal by-product, while xanthan gum is not. They are one-for-one substitutes however.