There can be some serious issues coming off Xanax if not tapered properly, and a doctor is the best person to determine the best taper schedule, taking into consideration your dose, frequency,
how long you've been on it, half life of the med, etc.
One of the things that comes with d/c'ing a benzo is some nasty rebound anxiety, therefore you need to put some other coping mechanisms in place to help you deal with that. CBT is a great form of therapy.