|
Home >Online Product Documentation >Table of Contents >How to Generate Java Code for XQuery How to Generate Java Code for XQueryTo generate Java code for XQuery:
1. Open the XQuery for which you want to generate Java code.
2. Define at least one scenario for the XQuery. The scenario must use the Saxon or DataDirect XQuery® processor. See Scenario Properties Used for Generating Code for more information.
3. Select the scenario for which you want to generate Java code.
4. Close the Scenario Properties dialog box.
5. Select XQuery > Generate Code > Generate Java Code from the Stylus Studio menu.
The Generate Java Code dialog box appears.
6. Specify the settings you want for the target directory, package and class names, and so on. See Java Code Generation Settings if you need help with this step.
7. Click OK.
Stylus Studio generates Java code for the XQuery. When the code generation is complete, the resulting file (classname |
XML Generator
Create sample XML instance documents from any XML Schema using the XML Generator. The generated XML document is always valid, well-formed XML!
Building Workflow Applications with XML
Learn how to design custom XML workflow applications - from modeling your data and information processes, to capturing input from users in XML, and finally, generating useful queries and reports from the XML data -- using XSLT & XQuery technologies.
Why XQuery - The Case for XQuery
Read "The Case for XQuery" - an article that debuted in the November 2005 issue of SOA WebServices Journal, written by Jerry King, Vice President of DataDirect Technologies.
Java IDE
Edit, compile and debug and generate Java code with Stylus Studio's Java Integrated Development Environment (IDE). Supports popular Java XML processing components including Apache Xalan, Apache Axis, Apache Xerces, Saxon and more.



