java标准教程 download.oracle/ javase / tutorial / jaxp / xslt / xpath.html 解释了XPath标准本身,但没有解释XPath的java api。我需要:
The java standard tutorial download.oracle/javase/tutorial/jaxp/xslt/xpath.html explains the XPath standard itself but not the java api for XPath. I need:
1)我知道XPath语法,即如何引用/ person / dateofbirth元素。什么是java api来选择这个节点并获取它的文本内容? 2)我可以通过XPath获取DOM对象吗? 3)某个地方是api的官方教程而不是xpath本身? 真正的问题是第3点,因为问题是以官方和第一手资料为基础。
1) I know XPath syntax, that is how to reference /person/dateofbirth element. What is the java api to select this node and get its text content? 2) can I obtain DOM objects via XPath? 3) is somewhere an official tutorial to the api and not to the xpath itself? The real question is the 3rd point since the issue is having official and first-hand information as a base.
推荐答案该教程是关于XSLT以及在该上下文中使用XPath的。我想XPath API的最官方文档是这样的: download.oracle/javase/6/docs/api/index.html?javax/xml/xpath/package-summary.html
That tutorial is about XSLT and th use of XPath in that context. I guess the most "official" documentation of the XPath API is this: download.oracle/javase/6/docs/api/index.html?javax/xml/xpath/package-summary.html
这真的很简单。
更多推荐
java XPath api参考
发布评论