jnunemaker/crack — Issue #35: parsing of XML return a singleton Hash that is not dumpable
Author: TiagoCardoso1983
Created: 2012-01-27 16:19:19+00:00
State: open

I'm using the parsing engine in order to get hash representation that will be serialized somewhere. In order for it to be serialized, the object cannot be singleton. Turns out, what the parsing function returns is indeed singleton, therefore, not dumpable.

quick example:

xml = '
This
is
freaky
'

Marshal.dump Crack::XML.parse(xml)

this returns: