Parsing XML, results in a hash containing the :kvx as a key

require 'kvx'

kvx = Kvx.new({fun: '123', apple: 'red'})

s =  kvx.to_xml

kvx2 = Kvx.new(s)
kvx2.to_h
#=> {:kvx=>{:fun=>"123", :apple=>"red"}}

It should return the original hash.

Tags:
Source:
1615hrs.txt
Published:
11-12-2015 16:15