3 Tutorial: 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
- Using prepared queries (similar to JDBC prepared statements)
- Updating data in relational databases
This tutorial uses the database tables and XML files provided with the product in the /examples subdirectory in the DataDirect XQuery installation directory.
In addition to this tutorial, DataDirect XQuery is shipped with examples that demonstrate other methods of coding the functionality shown in this tutorial and other DataDirect XQuery functionality. These examples are located in the /examples subdirectory in the DataDirect XQuery installation directory and explanation of the examples can be found in "Examples".