Another attempt to solve postgres xpath