You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require "sax-machine"
class Child
include SAXMachine
end
class Parent
include SAXMachine
elements :child, as: :children, class: Child
end
p Parent.parse(File.open("xml").read)
xml:
<?xml version="1.0"?>
<parent>
<child>
one &
</child>
<child>
two
</child>
</parent>
And it goes #<Parent:0x000055fef4541cc8> without nor child elements nether error raised.
The text was updated successfully, but these errors were encountered:
In case the underlying XML is not valid. In my case, just having unescaped
&
Gemfile:
test.rb:
xml:
And it goes
#<Parent:0x000055fef4541cc8>
without nor child elements nether error raised.The text was updated successfully, but these errors were encountered: