This document remains available on the W3C's Technical Report web page for reference and use by interested parties.
Readers are advised that no further maintenance (including correction of reported errors) is planned for this document.
Readers interested in the most recent version of the XQuery specification are encouraged to refer to
This document, published on 14 December 2010, is an Edited Recommendation of the W3C.
It supersedes the previous W3C Recommendation of 23 January 2007.
This second edition is not a new version of this specification; its purpose is to clarify a number of issues that have become apparent since the first edition was published.
All of these clarifications (excepting trivial editorial fixes) have been published in a separate errata document, and published in a Proposed Edited Recommendation in April 2009. On 3 January 2011, the original publication of this Recommendation was replaced by this version in which two HTML anchors that were omitted by the original publication have been restored; the W3C Team has retained a copy of the original publication.
This document This document has been reviewed by W3C Members, by software developers, and by other W3C groups and interested parties, and is endorsed by the Director as a W3C Recommendation.
It is a stable document and may be used as reference material or cited from another document.
W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment.
A query language that uses the structure of XML intelligently can express queries across all these kinds of data, whether physically stored in XML or viewed as XML via middleware.
This specification describes a query language called XQuery, which is designed to be broadly applicable across many types of XML data sources.