On the minimization of Xpath queries