Re: Java DSl XPATH text node

2014-12-18 Thread sekaijin
yes myXML is And containt only one "entete" TAG But I've changed my Xpath for And now It work By. -- View this message in context: http://camel.465427.n5.nabble.com/Java-DSl-XPATH-text-node-tp5760835p5760878.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Java DSl XPATH text node

2014-12-18 Thread Claus Ibsen
Hi You get a NodeList - are you sure your xpath is only selecting a single node, so it can be returned as plain text? On Thu, Dec 18, 2014 at 8:55 AM, sekaijin wrote: > 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

Re: Java DSl XPATH text node

2014-12-17 Thread sekaijin
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 Thank -- View this message in context: http://camel.465427.n5.nabble.com/Java-DSl-XPATH-text-node-tp5760835p5760859.html Sent from the Camel - Users mailing

Re: Java DSl XPATH text node

2014-12-17 Thread Claus Ibsen
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 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\log