Learn XQuery |
Home:Learn XQuery:White Papers:ACORD:DataDirect XQuery™ and XQJ Introduction to DataDirect XQuery™ and XQJThis Java example (click here to open the Java code) shows how simple it is to setup and execute an XQuery using DataDirect XQuery™ and its XQJ interface. The example references a 201 ACORD XML message used in Updating a Relational Database, but it can easily be modified/parameterized to execute other examples described in XQuery Operation Examples for an ACORD Insurance Application. As you can see the core of the Java code is straightforward: public void run() throws Exception { c.close(); The example code dumps the XQuery result to stdout, but that can be changed to suit your needs (creating a file, streaming the result to another XQuery processing, creating an XML DOM representation of the result, or feeding the result to an XSL-FO processor, for example). What's Next?Go to Using DataDirect XQuery™ and XQJ with EJB to learn how to use DataDirect XQuery™ and XQJ to create a Message Enterprise Java Bean. |
DataDirect XQuery FAQThis informative DataDirect XQuery® FAQ answers frequently-asked questions about DataDirect XQuery® , including questions about performance, scalability, use-cases, resources, and more. If you're more of a hands-on learner, then download a free copy and start exploring DataDirect XQuery® today! New Case StudyGevity produces sales proposals in real time using DataDirect XQuery® . See how Gevity uses DataDirect XQuery® to combine Web service data from SalesForce.com with relational data in Oracle in a pricing engine for HR management. |





