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.

Learn More

An XQJ Tutorial: Introduction to the XQuery API for Java

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.

Learn More

DataDirect XQuery and XQJ in your Java application

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 More

Performance Tips for DataDirect XQuery

DataDirect XQuery® was designed for performance and scalability, which are critical to our customers. This document describes some of the performance optimizations in our XQuery implementation and provides guidelines that will make most applications perform well.

Learn More

Querying XML Columns with DataDirect XQuery

Increasingly, XML is stored in relational databases as structured XML. Some applications will continue to shred XML into a relational format or store XML as CLOB values. Other applications can now take advantage of relational databases that support a native XML data type to represent an XML document or XML document fragment. This paper shows how you can use DataDirect XQuery® to query XML stored as character data and query XML stored as XML.

Learn More

How to Split XML Files

A common challenge in XML development is splitting a large XML document in several smaller ones. Learn how to deal with such huge XML documents by leveraging DataDirect XQuery to read and split XML.

Learn More

Multiple XML Output Files Using XQuery

Imagine a directory with XML files, each needing to be transformed to a new XML document. This tutorial covers how to query the complete directory and generate the results, all from a single XQuery, with no need for multiple queries, external scripting, or Java code.

Learn More

Using XQuery to Produce HTML and Images

Need to produce HTML and image output from XQuery? The following tutorial explains how to create an HTML document referencing JPEG files through XQuery. The DataDirect XQuery built-in function ddtek:serialize-to-url is used to save the JPEG images.

Learn More