We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML:
<wd:Position_Data wd:Effective_Date="2022-02-01"> <wd:Position_ID>12345</wd:Position_ID> </wd:Position_Data>
Ruby:
content = File.read('response.xml') nori = Nori.new(strip_namespaces: true) hash = nori.parse(content) puts hash.inspect
Expected:
{"Position_Data"=>{"Position_ID"=>"12345", "@Effective_Date"=>"2022-02-01"}}
Actual:
{"Position_Data"=>{"Position_ID"=>"12345", "@wd:Effective_Date"=>"2022-02-01"}}
The text was updated successfully, but these errors were encountered:
For the interested contributor, here's where a test case can be formulated.
https://github.com/savonrb/nori/blob/master/spec/nori/api_spec.rb#L33
Sorry, something went wrong.
No branches or pull requests
XML:
Ruby:
Expected:
Actual:
The text was updated successfully, but these errors were encountered: