Hi Claus,
I created a unit test for this. See my first post.
The problem is when i use an xquery predicate just after an xpath splitter.
from("direct:xpath")
.split(xpathsplitter)
.filter().xquery("//record[type=2]")
.to("mock:result");
This route works in 2.5.0 but fails in 2.9.0 with
java.lang.ClassCastException: net.sf.saxon.tinytree.TinyElementImpl cannot
be cast to net.sf.saxon.om.DocumentInfo
If i replace xquery predicate with an xpath one , the route works in both
2.5.0 and 2.9.0
from("direct:xpath")
.split(xpathsplitter)
.filter().xpath("//record[type=2]")
.to("mock:result");
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-test-fails-after-upgrading-to-2-7-1-Cannot-use-xquery-expression-after-xpath-tp4422582p5450318.html
Sent from the Camel - Users mailing list archive at Nabble.com.