Am trying to parse the input XML of a route to get a particular node's value. I tried this way,
<xpath>/CamelData/Provider/text()</xpath> But this throws an error, java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:137) [xalan.jar:] at org.apache.xpath.XPathContext.<init>(XPathContext.java:102) [xalan.jar:] at org.apache.xpath.XPathContext.<init>(XPathContext.java:349) [xalan.jar:] at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:113) at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:99) at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:184) at org.apache.camel.builder.xml.XPathBuilder.doInEvaluateAs(XPathBuilder.java:860) [camel-core-2.10.3.jar:2.10.3] Is there a way to get this resolved, or a better approach to parse the XML in DSL? Thanks, Anish -- View this message in context: http://camel.465427.n5.nabble.com/Parsing-a-XML-in-DSL-tp5770368.html Sent from the Camel - Users mailing list archive at Nabble.com.