Tutorials on Learning XQuery
XQuery Examples:
Download example documents for free and learn how easy it is to integrate, query and publish heterogeneous data sources using the DataDirect Data Integration Suite's XQuery product.
Using XQuery:
W3C XQuery is a query language for XML. The most common use cases for XQuery involve XML publishing to create XML for Web messages, dynamic web sites, or publishing applications. The original data may be found in XML files, or it may be in a data store such as a relational database.
Quick Start – DataDirect XQuery:
This quick start provides basic information for getting started with DataDirect XQuery® immediately after installation. In addition, this quick start describes the DataDirect XQuery® command-line utility that is available for quickly running and testing XQueries through a console window.
DataDirect XQuery® Overview Examples:
The following documents describe how to install, configure and run DataDirect XQuery® examples. Download these examples for free today and learn how easy it is to integrate, query, and publish heterogeneous data sources using XQuery.
Using DataDirect XQuery:
This tutorial shows how to use DataDirect XQuery and XQJ in your Java application to perform tasks that allow you to process queries that access XML and relational data sources, and return XML results, including Configuring connections to relational data sources, Executing queries, querying data in XML sources and DOM trees, joining data from XML and relational data sources, returning results as DOM trees, SAX event streams, and StAX event streams, and using prepared queries (similar to JDBC prepared statements).
Learn XQuery in 10 Minutes:
This XQuery tutorial written by Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It covers what XQuery is, and even how to write and run an example XQuery application, all in just 10 minutes!
The XQuery FLWOR Expression:
FLWOR is acronym made up from the five clauses that make up an XQuery FLWOR expression: for, let, where, order by, and return. This tutorial shows how to write an example XQuery FLWOR expression to join data and format results.
XQuery Functions:
XQuery functions, like any programming language functions are useful as a mechanism for hiding complexity, encouraging code re-use, and for advanced computation. This tutorial shows you how to write your own user-defined functions in XQuery.
Resolving fn:collection() Errors:
No standard way exists to access a relational table in XQuery, so each XQuery implementation defines its own way to do this. DataDirect XQuery® uses fn:collection() to access a relational table. This paper provides guidelines to help you troubleshoot and correct common causes of errors that occur when using fn:collection() in an XQuery query.
Use XQuery from a Java environment:
IBM's Developerworks claims "the easiest way to begin with XQJ is to download a free trial from DataDirect." This article is an introduction to XQuery and XQJ, and clarifies its examples throughout by using DataDirect XQuery.
Introduction to the XQuery API for Java (XQJ):
The XQuery language is designed specifically for XML programming and data integration, and programmers are more productive using XQuery for these tasks. However, many enterprise applications are built on the Java platform, and often require functionality not found in XQuery; for instance, many XML programs need to use the Web Services functionality of J2EE.
XQuery: A Guided Tour:
XML (Extensible Markup Language) is an extremely versatile data format that has been used to represent many different kinds of data, including web pages, web messages, books, business and accounting data, XML representations of relational database tables, programming interfaces, objects, financial transactions, chess games, vector graphics, multimedia presentations, credit applications, system logs, and textual variants in ancient Greek manuscripts.








