JetTrac XMLDiff

Introduction:

Working with sometimes lengthy or detailed XML documents and looking for differences within the tags can be very tedious and time consuming. Now you can compare data between two PDF’s in one XML file, e.g. the differences between a PDF form that was sent out to a user and after it came back.

Technical Support:

If you need assistance in installing and configuring JetTrac XMLDiff™, call Pro Technology Automation, Inc. at 805-527-1248 or email us at support@protechinc.com. Please note that the JetTrac XMLDiff™ license fee does not cover configuration services and technical support so there may be an additional charge. Please ensure you read these instructions carefully before calling for technical support.

How to run JTXMLDiff:

A bat file or Job step in JobController can run this module.
To run JTXMLDiff you will need these files in the same folder:

  • JTXMLDiff.exe
  • XMLDiff.ini
  • ExitHandler.dll

Executable files and dll files should not be edited for any reason.

Default Functionality:

Compares two XML’s and outputs a new XML that has all the differences

Job Step Configuration Window in JobConfig for JetTrac XMLDiff:

When setting up a job step using JTXMLDiff in JobConfig the only lines of the config you need to worry about are the first two and the last two, the Config file, the second Input XML, the first Input XML, and the Output Differences XML. If left as an asterisk * the input will be whatever file is in the data folder that triggered the job running. This works well if it’s the first step but if the input is also the output of a previous job step you would need to specify the fully qualified path of the input xml’s. All other fields should be filled with the fully qualified path to the intended file. Eg: C:\JetTrac\…\input.xml
In JobConfig, file paths entered should not be in quotes.

As with all modules, there is a dropdown to select whether or not the job should stop completely if this step fails. If you select Yes, any error will terminate the job process and write to the log file what happened, if no, then the job will try to continue anyways. However if any steps further down the line rely on the output of a job set to not stop on error, they may not work properly.

For more specifics go to the JetTrac Field ServiceJobConfig page.

JTXMLDiff Command Line:

“C:\JTXMLDiff.exe” “JTXMLDiff_Input1.xml” “JTXMLDiff_Input2.xml” “JTXMLDiff_Differences.xml” “JTXMLDiff_config.ini” “JTXMLDiff.log”

The command line begins with the file path to the module’s executable file followed by the file paths to two XML files to be compared, the desired file path and name of the output XML file reporting the differences. The command line continues with the file paths to the config and log files. Each part of the command line is the fully qualified path to the file, in quotes, separated by a space (it doesn’t matter how many)

JTXMLDiff Config.ini:

FieldList=*

The config file is one line, with the list of field names that want to be compared, separated by a comma

Additional Notes:

Ability to show granular results such as:

  • Tags that match but values that are different

Tags that are different and different values.