logo back up home forward   further reading more topics »

XES - User Guide - Converting Java Source code to C#

First startup the program as described in the main guide here. You will then get the program as shown here:

Click on the 'load java code' button at the bottom of the right pane. You will then get the file dialog to select the file required. When the file is loaded you will then see the symbol table as follows:

You can then modify any entries in the symbol table, for instance you may want to change:

java.io.*

to

System

When you have made any changes required to the symbol table, you can then select the 'transform' tab at the bottom of the left pane.

You can then press the 'load XSLT' button to bring up the open file dialog:

To convert to C# select the 'toCSharp.xsl' script. Clicking on open puts this in the left pane.

Clicking on 'Transform' at the bottom of the left screen puts the results in the right screen.

Clicking on 'Save to file' at the bottom of the right screen allows the generated code to be saved.


metadata block
see also:

Using XML with java

Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Processing XML with Java: A Guide to SAX, DOM, JDOM, JAXP, and TrAX

Other Java books

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

cover JBuilder - There is also a free version of Jbuilder at borland website . However its licence conditions are quite restrictive so you may prefer another java IDE.

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2013 Martin John Baker - All rights reserved - privacy policy.