It has been developed for generating KML files (Google Earth layers) from CSV data, but it can be used to process any kind of XML defined with the suitable template.
The XML resulting file is created from the structure of the XML base template file by repeating the nodes indicated by "templatenodes" in the configuration file for each line of data in the CSV input file.
The program replaces all the headers listed in XML Template with data from each line of the CSV file, generating the same number of nodes as lines in the CSV file.
Nodes are indicated with the complete 'path' from the root node of the XML document to the node to be "repeated", each element is separated by . (dot), for example: "XMLRootElement.element.node".
The root node is not a valid template node, for obvious reasons.
The default configuration file is "csv2xmlgen.cfg", but it's not necessary if all the arguments of the program are supplied, the rest of arguments take the default value.