You should use Saxon for many reasons...
I suggest adding the camel-saxon dependency and use:
/CamelData/Provider/text()
Best,
Christian
-
Software Integration Specialist
Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Mem
I was able to resolve it by uploading a new version of xalan jar
Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Parsing-a-XML-in-DSL-tp5770368p5770445.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I tried as you suggested, but still i get the same error,
/CamelData/Provider/text()
Exhausted after delivery attempt: 1 caught: java.lang.ClassCastException:
org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to
org.apache.xml.dtm.DTMManager: java.lang.ClassCastException:
org.apache.xml.d
Looks like your message is not in the expected format. Add a convertBodyTo
String before xpath. It should work.
--
View this message in context:
http://camel.465427.n5.nabble.com/Parsing-a-XML-in-DSL-tp5770368p5770375.html
Sent from the Camel - Users mailing list archive at Nabble.com.