Book description
“An excellent, early look at the emerging XML Query standard. The chapters on surprises and gotchas alone are worth the price of admission!”
—Ashok Malhotra, Architect, Microsoft
“XQuery is the most important XML standard to emerge in recent years, and is a language with which anyone using XML on a regular basis should become acquainted. Michael Brundage's accessible introduction to XQuery provides enough information on all aspects of the standard, including its dark corners, to allow any XML developer to jump right in and start coding.”
—Damien Fisher, Kernel Team Member, Soda Technologies Pty Ltd
“This book does an excellent job of distilling the essentials of XQuery in an understandable, straightforward and easily digestable manner. This book has already become an indispensible part of my library and is a welcome addition to my XML repertoire.”
—Dare Obasanjo, Program Manager, Microsoft Corporation
“Simply put, the emerging XQuery standard adds enormous value to XML data and this book is your key to unlocking that value. Here in one stop you will find an accessible introduction to XQuery and a complete reference. Practitioners will particularly value the sections on XQuery idioms and surprises where Michael shares his tricks of the trade.”
—Dave Van Buren, Project Manager, Jet Propulsion Laboratory
“It’s both a stupendous reference on XQuery and a good read. Michael writes with verve, authority, and an eminently readable style. What a rare delight to discover all this, and in a technical book too! When the sequel comes along, sign me up.”
—Howard Katz, Owner, Fatdog Software Inc., Editor, XQuery from the Experts (Addison-Wesley, 2003)
From corporate IT departments to academic institutions, XML has become the language of choice for storing and transmitting data across diverse application domains. XQuery, an XML Query Language invented by the World Wide Web Consortium, offers a powerful, standardized way to query all of that XML-encapsulated information. With its ability to integrate XML and non-XML data, XQuery seems poised to do for XML what SQL has done for relational data.
Written by the Technical Lead for XML query processing at Microsoft, XQuery: The XML Query Language is an invaluable resource for XQuery novices and experts alike. For those new to XQuery, this example-rich text serves as a tutorial that brings readers quickly up to speed on XQuery's data model, type system, and core language features. More experienced XML and database developers will find an excellent reference on the nuances of various expressions, as well as a guide to using XQuery to accomplish specific tasks.
Drawing on his experiences using XQuery, Michael Brundage offers an objective, inside look at this emerging technology. His unique perspective translates into an accessible and authoritative guide for readers using XML for documents, Web services, or databases.
Key coverage includes:
Data model and type system
Path navigation
Iteration, construction, arithmetic, text processing, type operators and user-defined functions
Information beyond the standard—such as a look at update languages, performance benchmarks, query optimization, XQuery style, and much, much more
Hundreds of examples
The future of XQuery
The appendixes provide in-depth information on XQuery's type system, core expressions, built-in functions, regular expressions, and grammar. Meanwhile, the companion Web site offers downloadable source code for all of the examples in the book, the latest on the XQuery standard, answers to readers' questions, XQuery tips and strategies, and more.
XQuery will show developers, programmers, and database administrators how a single line of this deep and powerful new language can accomplish the equivalent of hundreds of lines written in C, C#, Java, and other general-purpose programming languages.
Table of contents
- Copyright
- Praise for XQuery
- List of Figures
- Foreword
- Preface
-
I. Foundations
-
1. A Tour of XQuery
- 1.1. Introduction
- 1.2. Getting Started
- 1.3. Notational Conventions
- 1.4. Why XQuery?
- 1.5. Documents and Databases
- 1.6. Typed and Untyped Data
- 1.7. A Sample Query
- 1.8. Processing Model
- 1.9. Comments and Whitespace
- 1.10. Prolog
- 1.11. Constants
- 1.12. XML
- 1.13. Built-in Functions
- 1.14. Operators
- 1.15. Paths
- 1.16. Variables
- 1.17. FLWOR
- 1.18. Error Handling
- 1.19. Conclusion
- 1.20. Further Reading
- 2. Data Model and Type System
- 3. Navigation
- 4. Functions and Modules
-
1. A Tour of XQuery
-
II. Core Language Features
- 5. Basic Expressions
- 6. Iteration
- 7. Constructing XML
- 8. Text Processing
- 9. Type Operators
-
III. Application
-
10. Practical Examples
- 10.1. Introduction
- 10.2. Style
-
10.3. Idioms
- 10.3.1. Text Idioms
-
10.3.2. Navigation Idioms
- 10.3.2.1. Select Elements and Attributes Simultaneously
- 10.3.2.2. Navigate Case-Insensitively
- 10.3.2.3. Select Nodes by Type
- 10.3.2.4. Test Whether Two Nodes Are in the Same Tree
- 10.3.2.5. Select All Leaf Elements
- 10.3.2.6. Select All Ancestors
- 10.3.2.7. Select the First Common Ancestor
- 10.3.2.8. Select All Siblings
- 10.3.2.9. Calculate the Maximum Depth
- 10.3.3. Sequence Idioms
- 10.3.4. Type Idioms
- 10.3.5. Logic Idioms
- 10.3.6. Arithmetic Idioms
- 10.4. Conclusion
- 10.5. Further Reading
-
11. Surprises
- 11.1. Introduction
-
11.2. Confusion over Meaning
- 11.2.1. Numbers Like 3.14 Are Decimal, Not Double
- 11.2.2. Predicates Index Sequences, Not Strings
- 11.2.3. not(=) Is Not !=
- 11.2.4. Arithmetic Isn't Associative
- 11.2.5. Predicates + Abbreviated Axes = Confusion
- 11.2.6. Node Sequences Are Different from Node Siblings
- 11.2.7. No Sub-Tree Pruning
- 11.2.8. Type Conversions
- 11.2.9. What's in a Name?
- 11.2.10. FLWOR Doesn't Move the Current Context
- 11.2.11. Nested FLWOR Is Different
- 11.3. Confusion over Syntax
- 11.4. Conclusion
- 12. XQuery Serialization
- 13. Query Optimization
- 14. Beyond the Standard
-
10. Practical Examples
- IV. Reference
- Bibliography
Product information
- Title: XQuery: The XML Query Language
- Author(s):
- Release date: February 2004
- Publisher(s): Addison-Wesley Professional
- ISBN: 0321165810
You might also like
book
XQuery from the Experts: A Guide to the W3C XML Query Language
"The individual perspectives on the concepts behind the XQuery language offered by XQuery from the Experts …
book
Querying XML
XML has become the lingua franca for representing business data, for exchanging information between business partners …
book
XSLT and XPATH: A Guide to XML Transformations
Gain total control over your information with XSLT and XPath! Master XSLT and XPath—the "keys to …
book
XML Schema Complete Reference, The
With the successful implementation of XML Schema, developers are learning how to increase productivity, improve software …