java XPath api参考

编程入门 行业动态 更新时间:2024-10-27 10:25:49
本文介绍了java XPath api参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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参考

本文发布于:2023-11-15 03:40:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1590813.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:java   XPath   api

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!