The XQuery Query Languages

It might seem odd, but the XML Query Language will have more than one syntax. One syntax will be expressed in non-XML syntax and the other, XQueryX, will be expressed in a syntax that is compliant with the requirements of XML version 1.0. The non-XML syntax, XQuery, will be more easily human readable, and will be similar to XPath syntax.

XQuery

XQuery is the non-XML syntax for the XML Query Language.

One form of XQuery query uses a path expression syntax, so called because of its close similarities to XPath 1.0 syntax.

For example, if you had a document called book.xml that contained several chapter elements—each of which had a title element nested within it—you could retrieve the title of all the chapters in the book ...

Get Special Edition Using XML, 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.