CSV to XML
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
csv2xml.rb
opinions.csv

README.md

Setting Up

Make sure you have ruby installed

ruby -v

This should give something like:

ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

Install the dependencies

sudo gem install xml-simple

How to Run the Program

To read opinions.csv and output to the screen:

ruby csv2xml.rb opinions.csv

To output to a file called opinions.xml:

ruby csv2xml.rb opinions.csv > opinions.xml