Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

Introducing XQuery

XQuery is intended to work with single XML documents or collections of XML documents. In addition, XQuery will be able to query XML document fragments or collections of fragments. It borrows syntax from XSLT 1.0 and XPath 1.0.

For example, to query the chapter elements in a document named book.xml, we could use an XQuery expression—a path expression—such as the following:

document("book.xml")//chapter 

As you can see, an XQuery expression is not written in XML. You might recognize the use of the document() function from XSLT 1.0 and a path expression, //chapter, from XPath 1.0. Less basic XQuery expressions add XQuery-specific syntax.

XQuery is not the first attempt at an XML query language. Other such query languages include ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book