Functional Relations and Bethe Ansatz for the XXZ Chain