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

Introduction

In Chapter 3, you learned how to access XML that exists outside the query and navigate over it. In this chapter, you will learn how to construct XML directly in a query. Constructing XML is useful for several purposes, including creating a new result shape (transformation), representing temporary intermediate data structures (composition), and organizing data into conceptual groups (views).

XQuery has expressions for constructing all seven of the well-known XML node kinds: element, attribute, text, document, comment, processing-instruction, and namespace. For all of these node kinds, XQuery supports two different construction expressions: one with a syntax similar to XML, and an alternate XQuery syntax primarily ...

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