XPath、XQuery 和 XPointer 之间的区别 [英] Difference between XPath, XQuery and XPointer

查看:25
本文介绍了XPath、XQuery 和 XPointer 之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XPathXQueryXPointer 有什么区别?据我所知,XQueryXPath 的扩展版本.我有一些XPath 的基本知识.XPath 中是否有任何在 XQuery 中没有的可用功能?昨天,我听到了一个新词,XPointer.我很迷惑.哪种语言用于哪种目的?

What is the difference between XPath, XQuery and XPointer? As far as I know, XQuery is an extended version of XPath. I have some basic knowledge of XPath. Is there any feature available in XPath which is not in XQuery? Yesterday, I heard a new word, XPointer. I am confused. Which language is used for which purpose?

推荐答案

维基百科是解决此类问题的好地方.通常,XPath 是一种用于在 DOM 中简洁地查明确切 XML 节点的语言.XQuery 是 XPath 的超集,它还提供了 FLWOR 语法,类似于 SQL.最后,XPointer 包括 XPath,但也提供了更简单的基于位置的寻址方案.

Wikipedia is a good place to start for questions like this. Generally, XPath is a language used to succinctly pinpoint exact XML nodes in a DOM. XQuery is a superset of XPath that also provides FLWOR syntax, which is SQL-like. Finally, XPointer includes XPath, but also provides a simpler position-based addressing scheme.

当然,您可以随时阅读 W3C 规范以了解详细信息.

Of course, you can always read the W3C specs for full details.

这篇关于XPath、XQuery 和 XPointer 之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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