Main Program

Again, we put the main processing logic in a routine that is called from a shell main program. The shell main program functions are described next.

Logic for the Shell Main Routine for XML to CSV
 Arguments: Input Directory Name Output CSV File Name File Description Document Name Options: Validate input Help Validate and process command line arguments IF help option specified Display help message Exit ENDIF Open output file Create new CSVTargetConverter object, passing: Output Stream File Description Document Name Set up implementation dependent DOM environment for loading, parsing, and validating input documents Open input directory Get first file from input directory DO for all files in input directory Input Document <- Load input ...

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.