Skip to content

Instantly share code, notes, and snippets.

@awesome
Created September 13, 2009 23:50
Show Gist options
  • Save awesome/186381 to your computer and use it in GitHub Desktop.
Save awesome/186381 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'active_support'
# from XML to Hash
Hash.from_xml(xml_string) # => Hash
# from Hash to XML
{1=>2,3=>4}.to_xml # => "XML" String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment