As posted above, I don't know why a medication such as Xanax would be prescribed for pain; there are plenty of medications that are specifically designed to reduce or otherwise minimize pain. Xanax (or its generic equivalent) is not; it is meant to relax the patient.
Yeah, and Oxycodone is every bit as dangerous as anything in the Benzo family.