XPathParser: ensure that the text content of the AST is the same as the original expression