While Xanax is the brand-named form of alprazolam, clonidine is a generic medication. Clonazepam and Xanax are both benzodiazepines that act as depressants for the central nervous system (CNS). Clonidine is primarily used to treat hypertension and ADHD, whereas Xanax is used to treat anxiety and panic attacks.