How to Generate C# Code for XQuery

To generate C# code for XQuery:
1. Open the XQuery document for which you want to generate C# code.
2. Define at least one scenario for the XQuery document for which you want to generate C# code. The scenario must use the Saxon processor. See Scenario Properties Used for Generating Code for more information.
3. Select the scenario for which you want to generate C# code.
4. Close the Scenario Properties dialog box.
5. Select XQuery > Generate C# Code from the Stylus Studio menu.

The Generate C# Code dialog box appears.

Figure 363. C# Code Generation Dialog Box

6. Specify the settings you want for the target directory, namespace and class names, and so on. See C# Code Generation Settings if you need help with this step.
7. Click OK.

Stylus Studio generates C# code for the XQuery. When the code generation is complete, the resulting file (classname .cs) is opened in a third-party editor if you chose the Open the generated file option.

XQuery Profiler

Stylus Studio's XQuery Profiler allows you to benchmark any XQuery expression, and it helps you locate and eliminate performance bottlenecks for maximum XQuery performance.

OASIS Catalog Support

Stylus Studio's features for working with OASIS catalogs allow you to incorporate any vendor's catalog - or one of your own - in your XML, making writing correct and robust XML easier than ever.

Web Service Servers

Stylus Studio's Web Services tools support development and testing of Web service applications on the industry's leading Web Service Servers including Apache AXIS, Mirosoft SOAP Client Toolkit and Microsoft .NET Server.

Map between EDIFACT and X12

Anything can be mapped to anything: EDIFACT to X12 or vice-versa, either to XML, and any of those to flat files or other formats. Both the XSLT and XQuery mappers can help bridge complex formats with ease.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.