LoginSignup
0
0

More than 5 years have passed since last update.

Ruby で XML Spread Sheet を CSVに変換

Posted at

require "roo-xls"

xml_path = "/path/to/a.xml"
csv_path = "/path/to/a.csv"

xml = Roo::Spreadsheet.open(xml_path)
File.open(csv_path,"w"){|f| f.write xml.to_csv}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0