Re: xmlsimple: prevent folding multiple elements into array?

I have some xml that represents a somewhat weirdly formed hash.
XmlSimple is eating some of my structure.

Try this:

xml = <<INPUT



state


open


rate


daily


duration


monthly



INPUT

See http://www.germane-software.com/software/rexml/docs/tutorial.html

require ‘rexml/document’
doc = REXML::Document.new(xml)
doc.elements.each(“/kern/map/*”) do |element|
puts element.name, element.text.strip
end