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.
Fixed an issue parsing xml file where a node with type == file has ch…
…ildren that are not strings