Chapter 16. XQuery 1.0

XQuery 1.0 (XML Query Language) is the third major language resulting from the eight W3C Recommendations published in January, 2007. Like XSLT 2.0 (Chapter 14), XQuery is used to select content from an XML data source, transform that content as directed, and then return this new content as either XML, HTML, or some other format. XQuery uses the XPath 2.0 language (Chapter 15) to select XML source content and to manipulate that content if necessary, just like XSLT 2.0. In fact, most of the things that you can do with XSLT 2.0, you can also do with XQuery 1.0.

XQuery does differ from XSLT 2.0 in a few significant ways; including, most noticeably, that it does not use XML syntax. This actually makes for a more compact and easily ...

Get XML: Visual QuickStart Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.