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 now with O’Reilly online learning.

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