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

240 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 best solutions below

0
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.)