Details
Description
When executing a statement like this:
assertXPathEquals("//s:Body/rdb:country/@id", "1", doc);
The following exception is thrown:
java.lang.ClassCastException: org.jdom.Attribute
at org.codehaus.xfire.test.XPathAssert.assertXPathEquals(XPathAssert.java:112)
at org.codehaus.xfire.test.AbstractXFireTest.assertXPathEquals(AbstractXFireTest.java:305)
...
This is because the resulting node is cast to org.jdom.Content, but org.jdom.Attribute does not inherit from that class. I made a patch that checks the type of the resulting node.
Fixed in svn.