While xylitol, an artificial sweetener, is toxic for dogs, xanthan gum, a food additive, is safe.