XQuery Examples

The following documents describe how to install, configure and run DataDirect XQuery™ 3.0 examples. Download these examples for free today and learn how easy it is to integrate, query, and publish heterogeneous data sources using DataDirect XQuery™ 3.0.

XQuery Quick Start

This quick start provides basic information for getting started with DataDirect XQuery™ 3.0 immediately after installation. In addition, this quick start describes the DataDirect XQuery™ 3.0 command-line utility that is available for quickly running and testing XQueries through a console window.

Learn More

XQuery™ 3.0 Updates

DataDirect XQuery™ 3.0 supports updates to relational database tables from inside an XQuery by providing three built-in functions. These functions are: ddtek:sql-insert, ddtek:sql-update, ddtek:sql-delete. The DataDirect XQuery™ 3.0 update functionality requires extensions to the XQuery processing model for function declaration, XQuery expressions, and snapshot semantics.

Learn More

Updating Relational Data with XQuery™ 3.0 and JDBC

XQuery is ideal for querying and restructuring both XML and relational data, but XQuery updates are still in the planning stage. Using a combination of DataDirect XQuery™ 3.0, which is DataDirect's implementation of XQuery for Java API (XQJ), and JDBC offers a simple solution to working with both XML and relational data, and providing updates to relational data.

Learn More

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™ 3.0 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.

Learn More

Update on XQJ: XQuery API for Java

XQJ enables a Java application to submit XQuery queries to an XML data source and process the results. XQJ is analogous to JDBC, which in conventional SQL environments, a Java application uses to connect to a database, issue SQL queries, and obtain result sets. So, XQJ is to XQuery what JDBC is to SQL.

Learn More

JDBC Pooling

Connection pooling allows your application to reuse connections. DataDirect XQuery™ 3.0 supports connection pooling through JDBC. Learn how to configure JDBC connection pool managers in several popular application server environments including Tomcat, JBoss, BEA WebLogic, and IBM WebSphere Application Server.

Learn More

An XQuery Servlet for RESTful Data Services

Find out how to expose XQuery data integration services by invoking them through a Java servlet using a REST interface in this DevX article by Jonathan Robie.

Learn More