Skip to main content

XQuery Tutorial

XQuery is a functional query language that is built on XPath expressions.

It is designed to query data stored in the form of XML. We can say that XQuery is to XML what SQL is to a database.

Prerequisites

You should have a basic knowledge of:

Example

for $x in doc("books.xml")/bookstore/book  
where $x/price>30
order by $x/title
return $x/title

Table of Contents