Re: Choice with xpath

2015-08-09 Thread Christian Müller
I suggest adding the camel-saxon dependency and use: ... Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 O

Re: Choice with xpath

2015-08-06 Thread anish.somadevan
Am having a similar issue and i get this error message, 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

Re: Choice with xpath

2012-10-23 Thread Raul Kripalani
Hi German, This is more of an XPath question rather than a Camel-related one, but here goes the answer. Do you have multiple occurrences of element 'a'? The double slash traverses the entire input and returns all elements with name 'a' regardless of where in the document they are. Anyway, try th

Re: Choice with xpath

2012-10-22 Thread Willem jiang
I don't think Camel xpath[1] can provide the function that you want. You can use a bean method [2] with @Xpath annotation to do that kind of job. [1]http://camel.apache.org/xpath.html [2]http://camel.apache.org/bean-language.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat W