Is it possible to get the XPATH query string from XPathExpression?

229 views Asked by At

An XPath query is compiled into an XPathExpression, which can then be evaluted on document. Suppose if i have hold of only all the compiled expressions, is it possible to know what are the respective xpath queries for them ?

1

There are 1 answers

0
Michael Kay On

No, the JAXP XPathExpression class does not offer this capability. (Some implementations of this interface might do so, but that's a different question.)