Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reg: Difference between XQuery and XPath:

915396Aug 10 2014 — edited Aug 11 2014

Hi Experts,

I tried google about this and read few articles but didn't find any proper explanation, or might be not able to understand them.

From http://stackoverflow.com/questions/924551/difference-between-xpath-xquery-and-xpointer

Generally, XPath is a language used to succinctly pinpoint exact XML nodes in a DOM. XQuery is a superset of XPath that also provides FLWORsytnax, which is SQL-like. Finally, XPointer includes XPath, but also provides a simpler position-based addressing scheme.

This is also a good read - What is XQuery?

Any other pointers? As per my understanding, both are used to query XMLs, just like SQL does for relational data. But if both are similar, what is the reasoning behind two different technologies?


Please share your thoughts regarding this.

Regards,

-- Ranit

( on Oracle 11.2.0.3.0 )

This post has been answered by odie_63 on Aug 11 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2014
Added on Aug 10 2014
4 comments
1,666 views