Analysis of the Bethe ansatz equations of the XXZ model