Main Program

As with the other utilities our main program is a basic shell that calls methods from the SourceConverter base class.

Logic for the Shell Main Routine for X12 to XML
Arguments:
  Input File Name
  Output Directory Name
  Directory Path Name for File Description Documents

Options:
  Validate output
  Help

Validate and process command line arguments
IF help option specified
    Display help message
    Exit
ENDIF
Create new X12SourceConverter object, passing:
    Validation option
    Output Directory
    Directory Path for File Description Documents
Call X12SourceConverter processFile method, passing
    the input file name
Display completion message

The main difference between this and the CSV and flat file main programs is that instead of dealing with a specific ...

Get Using XML with Legacy Business Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.