xpath 2.0 for java possible

前端 未结 1 388
小鲜肉
小鲜肉 2020-12-15 18:25

What package shall I use for XPath? I want wo query for elements and then extract some values around these nodes. Maybe one or more levels higher, some attributes.

<

相关标签:
1条回答
  • 2020-12-15 19:14

    You may consider a Java-based XPath 2.0 or XQuery implementation (the XSLT 2.0 choice provides much more powerful functionality), such as Saxon 9.x.

    Saxon is open source and one of the highest quality java-based processor so far and I am using it on a daily basis when answering SO XSLT/XPath/XQuery questions. In the documentation you will find good code examples.

    The only stand-alone XPath 2.0 implementation I am aware of is PsychoPath, but I am not sure of its quality and usability.

    0 讨论(0)
提交回复
热议问题