XML made simple   
Home   Support   Contact  

Home
Products
Downloads
Purchase
Support
Articles
   xml to edi 850
Scenario
Assumptions
Step 1
Step 2
Step 3
Step 4
Conclusion
   xml schema editor
   xml editor

Step 3: Testings the maps

Now that the maps have been created (or downloaded), you should run a test or two before running the automated script.

Testing the Stylesheet

Testing the Stylesheet is a little more tricky. There are many tools out on the market for doing stylesheet development (we're even working on our own), and you may use any application you choose of course, but at this time we recommend using XRay, freely downloadable at http://architag.com/xray

XRay IDE, transforming the PayPal PO.xml to 850.xml
XRay IDE, transforming the PayPal PO.xml to 850.xml

With XRay, you can load in the PO.xml and the POto850.xsl, and then combine them to view the output and make sure it looks proper. And if it does, save it out named 850.xml (we will be using it to test the xmlLinguist Map below).



Testing the xmlLinguist Map

Testing the xmlLinguist Map is very easy. In the xmlLinguist GUI, with the 850.ltm loaded, simply click on Map | Run. This will display a dialog (shown below) that allows you to select a file to translate, a direction to translate, and the output file. Enter in the 850.xml file (either from our download, or as created from using the XRay application) for the first file edit box, select the ToText option for direction, and enter 850test.txt as the output filename.

xmlLinguist Run window
Map|Run to get this dialog, selecing source and destination files

After clicking OK, find the 850.txt file and open it in Window's Notepad.exe to see if it looks correct or not.

Moving on...

Satisfied wiht the results of your tests, move on to Step 4: Putting it all together