Snippets has posted 5883 posts at DZone. View Full User Profile
// Convert XML to JSON using Ruby and ActiveSupport
#! /usr/bin/env ruby
xml = File.open(ARGV.first).read
json = Hash.from_xml(xml).to_json
File.open(ARGV.last, 'w+').write json
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...