camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sb.append" <a261...@drdrb.net>
Subject help with getting xpath value?
Date Mon, 24 Mar 2014 16:07:09 GMT
Hello,

I cannot get the value of node into header. what I'm doing wrong here?

<entry xmlns="http://www.w3.org/2005/Atom">
        <id>123</id>
</entry>


.split(body().tokenizeXML("entry", "entries"))
.log("${body}")
.setHeader("entry", xpath("/c:entry/id/node()").namespace("c",
"http://www.w3.org/2005/Atom"))

but header is then entry =>
com.sun.org.apache.xml.internal.dtm.ref.DTMNodeList not the value of id
node.

I'd expect camel would convert node into string => 123



--
View this message in context: http://camel.465427.n5.nabble.com/help-with-getting-xpath-value-tp5749286.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message