Download Altova MapForce User Manual

Transcript
434
Code Generator
Integrating MapForce code in your application
25.5.1 MapForce code in Java applications
This example assumes that you are using Borland JBuilder as your Java environment.
Having generated the Java code in MapForce, and defined a folder named "output" as the
output folder,
1. Navigate to the output\Mapping folder, and open the Mapping.jpx project file.
2. Double click the MappingConsole.java file.
A snippet of the code is shown below.
Please note that the path names in the generated source code have been deleted for the sake
of clarity.
Looking at MappingMain1Object.run:
All parameters passed to the run method, except for the last one (CompletePO.xml), are
source files. Please ensure that the last parameter is the target file.
In this example:
the source files are:
· XML file: Short.PO.xml
Altova MapForce User Manual
© 2006 Altova GmbH