Chapter 8. Querying XML Data with XQuery

This chapter takes the discussion of XML queries to the next level and builds upon the previous two chapters. Chapter 6, Querying XML Data: Introduction and XPath, introduced the XPath and XQuery data model and described the XPath language. Chapter 7, Querying XML Data with SQL/XML, demonstrated how SQL/XML allows you to embed XPath expressions in SQL queries. Now we turn to XQuery, which is a query language for XML data and a superset of XPath. Everything you have learned about XPath already counts towards your understanding of XQuery. XQuery and XPath use a common data model, which was introduced in section 6.2, Understanding the XQuery and XPath Data Model. Understanding this data model is ...

Get DB2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.