java XPath api参考 [英] java XPath api reference

查看:147
本文介绍了java XPath api参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

java标准教程 http://download.oracle.com/ javase / tutorial / jaxp / xslt / xpath.html 解释了XPath标准本身,但没有解释XPath的java api。我需要:

The java standard tutorial http://download.oracle.com/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的最官方文档是这样的:
http://download.oracle.com/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: http://download.oracle.com/javase/6/docs/api/index.html?javax/xml/xpath/package-summary.html

这真的很简单。

这篇关于java XPath api参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆