class ActiveSupport::XMLConverter

def deep_to_h(value)

def deep_to_h(value)
  case value
  when Hash
    process_hash(value)
  when Array
    process_array(value)
  when String
    value
  else
    raise "can't typecast #{value.class.name} - #{value.inspect}"
  end
end