22 Oct '12, 9am

convert xml to csv in ruby and write it to a text file - Ruby Forum:

Hello guys ! I'm new in Ruby....Hope you can help because i'm trying a lot and just can't see where is the problem.. I have this xml, and not only this, i want just for any xml file that i might put : <?xml version="1.0"?> <records> <company> <id>p1</id> <name>Skoda</name> <price>10000</price> <stock>4</stock> <country>Czech Republic</country> </company> <company> <id>p2</id> <name>Mercedes</name> <price>50000</price> <stock>5</stock> <country>Germany</country> </company> <company> <id>p3</id> <name>Alfa Romeo</name> <price>18000</price> <stock>19</stock> <country>Italy</country> </company> <company> <id>p4</id> <name>Fiat</name> <price>1500</price> <stock>15000</stock> <country>Italy</country> </company> </records> AND USING THE CODE BELOW: require 'nokogiri' require 'pp' xmldoc = Nokogiri::XML(IO.read("xmlinputfile.xml")) columns = xmldoc.xpath('/*/*[position()=1]/*').ma...

Full article: http://www.ruby-forum.com/topic/1595950

Tweets

Rails Forum – Ruby on Rails Help and Discussion...

news.ejazahmad.com 22 Oct '12, 4am

Here’s a few RJS tips that don’t seem to be documented very well. If you have a tip to share, please add it to this thread.

5 Steps To Convert Visitors On Your Blog

5 Steps To Convert Visitors On Your Blog

advancedwebranking.com 21 Oct '12, 6pm

Found a nice, stylish hat and feel the need to share your thoughts? Well, what are you wanting for? Log into your fashion ...

#Job Ruby on Rails Expert Needed by yamone: I a...

freelancer.com 20 Oct '12, 10am

Project ID: 2582205 Project Type: Hourly Hours of work: 20 hours / week Project Duration: 1 - 4 weeks Project Description:...