def parse(string)
      require 'rexml/document' unless defined?(REXML::Document)
      doc = REXML::Document.new(string)
      merge_element!({}, doc.root)
    end
def parse(string)
      require 'rexml/document' unless defined?(REXML::Document)
      doc = REXML::Document.new(string)
      merge_element!({}, doc.root)
    end
Parse an XML Document string into a simple hash

 Same as XmlSimple::xml_in but doesn't shoot itself in the foot,
 and uses the defaults from ActiveSupport

 string::
   XML Document string to parse