XQuery Basics Primer

Introduction

The XQuery Basics Primer includes a series of Lessons to help you learn the fundamentals of XQuery. By the end of the Primer, you will understand XQuery terminology and feel comfortable with the XQuery syntax. In addition, you will have gained a solid understanding of how to use XQuery in your applications.

The Lessons are designed around a real-world scenario and include examples that show you how to use XQuery with both XML and relational data sources and examples that show you how to embed XQuery in your Java applications using the XQuery API for Java (XQJ).

See "Why XQuery?" for information about XQuery and why its role in data integration is important to developers who work with XML and relational data sources.

Prerequisites

To obtain the maximum benefit from the XQuery Basics Primer, you'll need a basic understanding of XML. If you are new to XML, you can visit the following site for a technical overview of XML.

http://xml.com/pub/a/98/10/guide0.html

Lesson Overview

See the following list for a map to the XQuery Basics Primer lessons and their objectives.

Scenario for Lessons

Basic Principles

  • Lesson 1
    Helps you understand how XML is represented in the XQuery data model.
  • Lesson 2
    Shows how to use path expressions to navigate an XML document. XQuery path expressions are based on the same syntax as XPath 2.0.
  • Lesson 3
    Shows how to compose a simple XQuery FLWOR expression. The FLWOR expression is the most commonly used XQuery expression and is, in many ways, similar to SELECT-FROM-WHERE used in SQL.
  • Lesson 4
    Shows how to compose a complex FLWOR expression that integrates data from multiple data sources.

Begin XQuery Basics Primer now