Overview
ProcessXML(inputFile, outputFile)
ProcessXML takes property values, file names and folder names from the inputFile and creates outputFile in either XML or CSV file format.
The property values defined in the XML file follow the specification as defined in the manual page for LoadXMLSettings. The files and folder to process are defined in the following way....
To process a file:
<Process>
<File>/path/to/image.tif</File>
</Process>
To process the images in a folder:
<Process>
<Folder>/path/to/folder</Folder>
</Process>
Both the File and Folder tags accept an optional id attribute. This can be used in the output to identify the image file or folder.
Example:
<xml>
<SoftekBarcode>
<Properties>
</Properties>
<Properties>
<MedianFilter>1</MedianFilter>
</Properties>
<Process>
<File id=1001>C:\tmp\image1.tif</File>
<File id=1002>C:\tmp\image2.tif</File>
<File id=1003>C:\tmp\image3.tif</File>
<Folder id=9001>C:\tmp\images</Folder>
</Process>
</SoftekBarcode>
</xml>
See the manual page for SaveResults for the output file format.
Return Value
1 on success and 0 on failure.
Visual Basic using the OCX
retval = [form.]SoftekBarcode.ProcessXML(inputFile, outputFile)
Visual Basic using the DLL
Private Declare Function stProcessXML Lib "SoftekBarcode" (ByVal strInputFile As String, ByVal strOutputFile As String) As Integer
retval = stProcessXML(inputFile, outputFile)
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ProcessXML(inputFile, outputFile)
retval = oBar.XMLRetval ;
VB.Net using the DLL
Private Declare Function stProcessXML Lib "SoftekBarcode" (ByVal strInputFile As String, ByVal strOutputFile As String) As Short
retval = stProcessXML(inputFile, outputFile)
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
retval = barcode.ProcessXML(inputFile, outputFile)
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
retval = barcode.ProcessXML(inputFile, outputFile)
Visual C++ Using the OCX
short ProcessXML(inputFile, outputFile) ;
Visual C++ Using the DLL
short __stdcall stProcessXML(LPCTSTR inputFile, LPTSTR outputFile);



