Professional XML (Programmer to Programmer)

This chapter started with a brief introduction to XQuery by discussing the role of XQuery, its advantages and the structure of an XQuery expression. After that, you looked at one of the key aspects of XQuery-FLWOR expressions that provide you with a consistent way to write and execute query expressions. FLWOR expressions are the central feature of the XQuery language, in the same way as path expressions are at the heart of XPath. Specifically:

After that, you learned the various functions supported by XQuery including the use of built-in and user-defined functions. You also explored the steps involved in using XQuery from within a Java program through an XMLBeans open-source implementation. As part of this, you learned the two ways of executing XQuery expressions from within a Java application: through XmlObject and XmlCursor. Examples showed you the XQuery implementation in SQL Server 2005.

Now is as good a time as any to start learning XQuery, because it's bound to become more prominent as XML data stores continue their meteoric rise. Furthermore, with the deep XQuery support provided by SQL Server 2005, it is only a matter of time before XQuery becomes pervasive.

Категории