Treating anxiety often involves cognitive-behavioral therapy and antidepressant medications. Benzodiazepines are another class of medications used to help curb anxiety. Two commonly prescribed benzodiazepines are Valium and Xanax. Read on to learn how these two medications compare.