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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.