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.
我需要使用 Java 从 DOM 对象中获取值,我想知道 XPath 和 JXPath 之间的区别。
XPath 是一种 W3C 定义的语言,用于在 XML 文档中查找数据。有很多实现。最新版本是 XPath 3.1,但许多实现只支持原始版本 1.0。
JXPath 是一个开源库,它实现(某种版本的?)XPath 语言,将其专门应用于 Java 对象的一般图形的 XML 视图的导航,而不是 XML 文档本身。