Seems to me that {}.to_xml is generating one level too many of xml
structure, but I may be interpreting things incorrectly… I’ve reduced
my question to a very simple case:
b
=> {“elist”=>[{:element=>1}, {:element=>2}]}
<?xml version="1.0" encoding="UTF-8"?> 1 2puts b.to_xml
Also with skip_types:
<?xml version="1.0" encoding="UTF-8"?> 1 2puts b.to_xml(:skip_types => true)
There’s one too many levels of . Is this a bug or intentional?
Is there a way to get it to remove that extra layer?
What I would like/expect the behavior to be is:
1 2Thoughts?