How do I automate xmlLinguist to both map from txt to XML anf from XML to text>
| Author | Comment | ||
|---|---|---|---|
entrack |
automating xmlLinguist |
Lead | |
|
How do I automate xmlLinguist to both map from txt to XML anf from XML to text>
|
|||
Bryce K Nielsen |
Re: automating xmlLinguist | ||
|
There are two ways to do it, and both require you to download the xmlLinguist Translation Engine, or LTE for short, at www.sysonyx.com/products/...st/lte.asp
The first way is to us LTE.EXE and pass it some command line parameters for the Map file, the Source file, Destination file and direction (ToXml or ToText). Typing LTE.EXE will show these parameters in a "help" display. To "automate" the EXE, there are many different ways. Any application that can shell out to the EXE can do it, you could write a BATCH file to handle it, or you could even just set a shortcut to the EXE with the appropriate parameters and schedule it using the Windows Scheduler. The other way to automate your translations is using LTE.DLL. Inside this DLL is a COM object that you can create form any Windows programming language, such as VB, C++, ASP, etc. Istantiate the COM object, pass it in the values of MapFile, Source text, Direction, and it will return the translated results. Inside the LTE download is a help file as well as a couple sample applications using the COM object (one in Delphi and one in VB6). Also, the tutorial at www.sysonyx.com/xml-to-edi-850 contains a sample VBScript file that pieces it all together in an automated fashion. -BKN |
|||