Xantham gum cannot be used as a substitute for gum Arabic. But gum arabic can be used as a substitute for xanthan gum. Xanthan gum may cause allergic reactions, especially those who have corn allergy in some people. For the case, you can substitute for xanthan gum in a specific amount. Gum arabic is one of the alternatives. It a natural food stabilizer, which is derived from the sap of various species of acacia tree. The low viscosity, high emulsification and adhesion properties make gum arabic an excellent ingredient in foods.
While some people think that depends what for, but not really. Xanthan gum is great for forming viscous solutions. Gum Arabic stabilizes emulsions and makes films but isn't that viscous. Xanthan is a large stiff polysaccharide but gum Arabic has some protein groups that makes it amphipillic.