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)
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 ...