parse(data)
Parse an XML Document string or IO into a simple hash using libxml.
data
XML Document string or IO to parse
# File activesupport/lib/active_support/xml_mini/libxml.rb, line 14 def parse(data) if !data.respond_to?(:read) data = StringIO.new(data || "") end if data.eof? {} else LibXML::XML::Parser.io(data).parse.to_hash end end