class Hash
def from_xml(xml, disallowed_types = nil)
DisallowedType is raise if the XML contains attributes with type="yaml" or
# => {"hash"=>{"foo"=>1, "bar"=>2}}
hash = Hash.from_xml(xml)
XML
xml = <<-XML
its content
Returns a Hash containing a collection of pairs when the key is the node name and the value is
def from_xml(xml, disallowed_types = nil) ActiveSupport::XMLConverter.new(xml, disallowed_types).to_h end