Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一个 XPath 查询被编译成一个 XPathExpression,然后可以在文档上进行评估。假设如果我只持有所有已编译的表达式,是否有可能知道它们各自的 xpath 查询是什么?
不,JAXP XPathExpression 类不提供此功能。(此接口的某些实现可能会这样做,但这是一个不同的问题。)