Open col-panic opened 9 years ago
Consider your csv example, could you add an option '-u 1' that uses the first line of the csv as naming scheme for the xml output column names?
So for example the following output would happen
$ cat input.csv | csvprintf -ix -u 1 <?xml version="1.0" encoding="ISO-8859-1"?> <csv> <row> <NAME>Fred Smith</NAME> <ADDRESS>1234 Main St. Anytown, USA 39103</ADDRESS> <POINTS>123.4567</POINTS> </row> <row> <NAME>Wayne "The Great One" Gretsky</NAME> <ADDRESS>59 Hockey Lane</ADDRESS> <POINTS>999999</POINTS> </row> </csv>
thanks a lot
Good idea. I'll take a look when time permits.
Consider your csv example, could you add an option '-u 1' that uses the first line of the csv as naming scheme for the xml output column names?
So for example the following output would happen
thanks a lot