views:

362

answers:

1

Are there any scripts out there, or have any of you built a tool, to convert YAML to XML using Nokogiri? If not, any suggestions or samples?

+2  A: 

I don't know of any for Nokogiri, but if you just want the structure of the data, it is quite simple with ActiveSupport:

require 'active_support/core_ext'
YAML.parse("key: value").transform.to_xml
mckeed