debugging xpath error