Reputation: 33
I would like to build a Rails application to import the data from a XML file into a MySQL database. Any help?
Upvotes: 1
Views: 2099
Reputation: 12830
Why do you need Rails for this task? Will the XML file be uploaded by users? If not, then a script in ruby may be all you need.
In all cases you need to:
For the first task you may use ReXML, LibXML, Nokogiri or any other XML parser library.
For the second (if you don't use ActiveRecord in Rails), you may see the documentation for the mysql2 gem.
Feel free to ask further questions if you have any problems with these libraries.
Upvotes: 1