Hi

Can you try pass in the output type you want to xpath as a 3rd
argument, eg String.class.



On Wed, Dec 17, 2014 at 5:26 PM, sekaijin <jean-yves.terr...@sap.aphp.fr> wrote:
> Hi
> I'm using Xpath to get an header.
> My XML message
>
> My Route Builder
>
> When I test the XPath expression I get
> ID Système:
> D:\Travail\logistique\ng446\ng446-phedra-transfo\data\NG44601.SPE.047.20120101-120425.xml
> Description: /reservation[1]/entete[1]/codeLivraison[1] - 12235
> But in camel the header containt a
> com.sun.org.apache.xml.internal.dtm.ref.DTMNodeList Object
>
> I've tried to use String.class argument to convert it in string but I get an
> empty string.
>
> Thank to help me
> I'm running camel 2.8.1
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Java-DSl-XPATH-text-node-tp5760835.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to