Main Program

As discussed in Chapter 6, in order to develop reusable modules that can be linked together into programs and not just cobbled together in scripts, we put the main processing logic in a routine that is called from a shell main program. The shell main program functions, described next, are essentially identical to the CSV main routine.

Logic for the Shell Main Routine for Flat to XML
 Arguments: Input File Name Output Directory File Description XML Document Options: Validate output Help Validate and process command line arguments IF help option specified Display help message Exit ENDIF Create new FlatSourceConverter object, passing: Validation option Output Directory File Description XML Document Call FlatSourceConverter processFile ...

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.