On 15 juin 2012, at 08:57, Robert Klemme wrote:

>     7  <dict>
>     8        <key>A</key>
>     9        <string>val1</string>
>    10        <key>B</key>
>    11        <string>val2</string>
>    12        <key>C</key>
>    13        <string>val3</string>
>    14  </dict>


This furiously looks like a property list which I will assume is what =
you want to parse, in which case don't even bother using Nokogiri and =
simply use the plist gem.

require "plist"

xml =3D <<XML
<dict>
    <key>A</key>
    <string>val1</string>
    <key>B</key>
    <string>val2</string>
    <key>C</key>
    <string>val3</string>
</dict>
XML

puts Plist.parse_xml(xml)

--=20
Luc Heinrich - luc / honk-honk.com