Skip to Content
XQuery: The XML Query Language
book

XQuery: The XML Query Language

by Michael Brundage
February 2004
Intermediate to advanced
544 pages
9h 55m
English
Addison-Wesley Professional
Content preview from XQuery: The XML Query Language

Chapter 5. Basic Expressions

Introduction

XQuery is a large language, with many different kinds of expressions. Some of these expressions are so basic that they will appear in almost every query you will write.

This chapter focuses on the most fundamental XQuery operators and functions, beginning with comparisons and sequence manipulation, proceeding to arithmetic, logic, and finally touching on the details of the query prolog not already described in previous chapters.

Even if the XML data you are working with is untyped, the XQuery expressions you write are typed. To illustrate the interactions of types and expressions, we'll use the typed XML fragment shown in Listing 5.1 as the input sequence in the examples throughout this chapter.

Each element ...

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

XQuery from the Experts: A Guide to the W3C XML Query Language

XQuery from the Experts: A Guide to the W3C XML Query Language

Howard Katz - Editor, Don Chamberlin, Denise Draper, Mary Fernández, Michael Kay, Jonathan Robie, Michael Rys, Jérôme Siméon, Jim Tivy, Philip Wadler
Querying XML

Querying XML

Jim Melton, Stephen Buxton
XSLT and XPATH: A Guide to XML Transformations

XSLT and XPATH: A Guide to XML Transformations

John Robert Gardner, Zarella L. Rendon

Publisher Resources

ISBN: 0321165810Purchase book