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
2010-03-12 15:38:37