Chapter 6. Querying XML Data: Introduction and XPath

This is the first of four chapters that discuss methods for querying XML data. This chapter lays the foundation for the next three chapters and discusses the following topics:

• Overview of the different options for querying XML data (section 6.1)

• The XPath and XQuery data model (section 6.2)

• The XPath language (sections 6.3 through 6.15)

XPath provides the basic means for traversing XML documents, evaluating predicates, and retrieving XML values. XPath is at the very core of querying XML data in DB2 for z/OS and DB2 for Linux, UNIX, and Windows. A good understanding of XPath and its data model is essential for querying XML data in DB2. The subsequent chapters then expand on these ...

Get DB2® pureXML® Cookbook: Master the Power of the IBM® Hybrid Data Server 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.