Converting an xml file for use in a Ruby on Rails application
http://www.cafeconleche.org/examples/baseball/1998statistics.xml
I am trying to load the xml file above to fit into a rails application and
am having very little success. I am thinking that I should use Nokogiri to
parse the data. The end goal here is to take the data from the link above,
baseball stats, and have a table displaying its data, the baseball players
stats and fit this into a rails application.
Basically, it's two parts: 1. Reading the XML file into your program 2.
Converting the XML into a hash, or any other suggestion
I am using Rails 4.0, Ruby 2.0, on a Mac OSX
How do I read the xml file and convert the data to allow it to run in a
ruby on rails application?
No comments:
Post a Comment