O'Reilly logo

Special Edition Using XML, Second Edition by - et al. David Gulbransen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required