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
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.
About the Author
Michael Brundage, the Technical Lead for XML query processing at Microsoft, designed the architecture for Microsoft's .NET Common Query Runtime and implemented the XML query optimizer for XPath, XSLT, and XQuery. He also implemented XPath over XML Views in SQL Server 2000, and has several patents and publications on XML query processing. Previously, he was a Senior Software Engineer at Caltech and NASA's Interferometry Science Center, where he worked on projects such as AstroVR and the search for extrasolar planets.