XDefGUI: X-definition Editor and Debugger Guide

1. Download the XDefGUI.zip file.

2.Unzip it to the XdefGUI directory, which contains the command file: runProject.cmd.

3. In the projects directory there are subdirectories containing data for each project. The basic one is the project.xml file. It contains links to other files used in the project (X-definitions, input data, etc.). The X-definition describing the project file is here. You start the corresponding project by specifying the subdirectory name as a parameter to the runProject.cmd command.

4. For example, start with the compileXD project, which contains the basic steps. Then call:

runProject.cmd with the parameter compileXD. The compileXD project will compile the X-definitions that are in the compileXD directory with the filename xdef*.xml (there is only one X-definition, but there may be more like this).

This process

- Displays the X-definition and if there are errors in it, it shows them and you can edit it. You can always get out of each window by pressing F10 (there you will see more options and you can e.g. save the corrected X-definition somewhere). You can always press F10 and the x key to get out of a window and go to the next step.

- X-definition will start in validation mode with the data.xml file (which is also in the project directory). You can set stop addresses and debug the process (by pressing F10 and selecting the appropriate option) before running the validation. - The result will be displayed and you can save it.

5. Sample ready projects in the projects directory are:

- construct Example of construction mode
- extMethod Example with external method
- json Example of validating JSON data.
- test Example of a more complex project
- validate Example of validation mode

6. A new project can be designed using the genProjectFromXML.cmd command. This will generate a project in the newProject directory with an X-definition generated from the XML data (which is displayed in a window that you can modify).

7. Review the project.xml files that describe the project properties.

     Enjoy it!