nori
nori copied to clipboard
There is issue in Savon with empty nodes filled with attributes in hash
Issue: https://github.com/savonrb/savon/issues/314
Problem: When node is empty, it leaves it as hash and fills it with attributes. This is wrong. I commented line out...
can you add specs to describe your problem and verify the fix?
Did you get a chance to do the specs?
Not jet. Too bussy.
Psáno z telefonu. Dne 23.4.2013 0:32 "kPhilosopher" [email protected] napsal(a):
Did you get a chance to do the specs?
— Reply to this email directly or view it on GitHubhttps://github.com/savonrb/nori/pull/27#issuecomment-16828227 .
I don't know for sure, but maybe if you just pass delete_namespace_attributes => true
to Parser initializer you will get the expected response with blanks instead of namespece attributes.
I'm finding this to be an issue for me too.
The attributes of any self closing tag <sometag attribute="bla" />
are being provided as the value after conversion to a hash.
Setting delete_namespace_attributes
to true fixes the problem for me... but it was pretty surprising to encounter!