XQuery tutorial


May 28, 2021 08:00 XQuery


Table of contents


XQuery tutorial

XQuery, or XML Query, is used to extract information from a class XML (a subset of the standard common tag language) document.

XQuery's role in XML is similar to SQL's role in databases.

XQuery is designed to query XML data.

Start learning XQuery now!

XQuery instance

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



XQuery reference manual

In W3CSchool, we provide a complete reference manual for all operators, built-in functions, and data types in XQuery 1.0.

XQuery reference manual