Not sure all the use cases yet, but would be nice to supply a CLI argument to provide a directory with .xml files. Should be easy to parse the .xml files in the supplied directory and then pass them to process(filename).
The word document is initialized before the function, and saved in main().
Would also need to some additional validation put into place to make sure the supplied dir exists and only process .xml files.
Not sure all the use cases yet, but would be nice to supply a CLI argument to provide a directory with .xml files. Should be easy to parse the .xml files in the supplied directory and then pass them to process(filename).
The word document is initialized before the function, and saved in main().
Would also need to some additional validation put into place to make sure the supplied dir exists and only process .xml files.