jnunemaker/crack — pull request #40 by admgre (2012-10-22 01:19:57+00:00)
Title: Exception from the special treatment of XML tags with type == file

I was parsing an XML document (in this case, the XML configuration of a kvm domain) with Crack::XML.parse and it was throwing an exception.

After digging around this was because in the case where the tag has a type attribute set to file the children nodes are assumed to be strings. In this case the children are another XML tag and not a string causing an exception.

I also added a test as requested covering this bug.