XQuery is a more convenient way to access XML information than traditional XPath 1.0 expressions. It includes much greater type checking, data manipulation functions, and a fundamental change from node-sets to sequences. Perhaps the greatest change is the addition of programming-like capabilities that more closely mirror the types of tasks that will be necessary as XML makes further inroads into data storage.
These additions include FLWOR statements, which provide functionality similar to SQL statements, and the ability to create user-defined functions.
Other topics covered in this tutorial include:
- Using DB2's XQuery implementation
- FLWOR expressions and their various permutations
- Changes to XPath with version 2.0
- Advanced programming capabilities built into XQuery