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.

Can this page be improved?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

progam

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

for xml encoding: http://sourceforge.net/projects/xes/

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

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