From: Brian Candler Date: 2007-07-17T19:09:45+09:00 Subject: 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 = < state open rate duration 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