Xanax is also known as Alprazolam whereas Diazepam is also known as valium. Both these drugs are antidepressants that are both have the same mechanism of action that is these both are used to cure depression and anxiety. However, there is a slight differe...