Created
September 18, 2020 14:45
-
-
Save kp666/6b2ac64c7674127b1ea8143854882aab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ox' | |
xml = %{ | |
<top name="sample"> | |
<middle name="second"> | |
<bottom name="third">Rock \u0003 bottom</bottom> | |
</middle> | |
</top> | |
} | |
puts Ox.load(xml, mode: :hash) | |
puts Ox.load(xml, mode: :hash_no_attrs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment