csv2xml - A csv to xml converter
As the name suggest, csv2xml is a simple csv to xml converter. It reads csv files from standard input, and output a valid xml file on standard output.
csv2xml is great if your client asks you to resend a data file as xml, no need to modify your scripts, or for when you have a large csv file and you would like to be able to view/edit it with your favourite xml utility.
How to use csv2xml
If you have a csv file called test.csv and want to create a file test.xml after installing csv2xml you would type the following:
csv2xml < test.csv > test.xml
Installing
Currently there is source code available for anyone using a BSD/Linux based system, it should work in windows but I have not created executables for it. Download the source from sourceforge, and follow the README instructions. If you want binaries for windows or other operating systems let me know and I should be able to arrange it fairly quickly.
Downloading
The latest version is available on sourceforge.
Documentation
For further information read the man pagees, here are some other related documents.
- csv file format -- What makes a valid csv file.
- xml output modes -- Shows examples of the various output formats.