Created
September 18, 2020 14:46
-
-
Save kp666/cb194a6ff7b2f5a20280fe76abf435b8 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 \u266A 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