Difference between XPath, XQuery and XPointer

后端 未结 4 440
广开言路
广开言路 2021-01-30 10:20

What is the difference between XPath, XQuery and XPointer? As far as I know, XQuery is an extended version of XPath

4条回答
  •  轮回少年
    2021-01-30 10:50

    Well, I think XQuery is something worth to be distinguished. XPath and XPointer are almost the same and are used for XML nodes selection. XQuery on the other hand is quite a big extension of XPath. For example it gives possibility of declaring custom functions. So it's more something like programming language, which works natively with XML. You can check out some samples here: embedding-xquery-in-java

    Regards

提交回复
热议问题