Risperdal is typically prescribed to treat schizophrenia, bipolar mania, and autism. Xanax is primarily prescribed to treat panic attacks and anxiety disorders. Risperdal and Xanax belong to different drug classes. Risperdal is an atypical antipsychotic and Xanax is a benzodiazepine.