-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
Given this simple minimal example:
<data>
<test1 attr1="a1"/>
<test2 attr1="a1">
<id>myId</id>
</test2>
<test3 attr="a1">content</test3>
</data>
The output is:
{"data"=>{"test1"=>{"@attr1"=>"a1"}, "test2"=>{"id"=>"myId", "@attr1"=>"a1"}, "test3"=>"content"}}
The attribute of the tag test3 is missing. I believe this to be an error. Especially as many XML standards exspect this attributes to be used. E.G. the new XRechnung (en16931) declares many attributes this way. Is there a possibility to include the attributes of tags with content but without further tags inside them into the hash?
Metadata
Metadata
Assignees
Labels
No labels