camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ankelee <>
Subject Re: Filename based on XPath result
Date Mon, 22 Mar 2010 15:15:13 GMT


I'm trying to do this:

.setHeader("envelopeId", xpath("/something/@Id")).to.....

But the header just get set to the XPathBuilder object.

Wouldn't something like the .evaluate() method needed to be used for this
(when using the XPathBuilder in Java)?

String address =
exchange.getIn().getBody(), String.class);

Maybe there's a better soulution to retrieve the id from the xml? I just
want to get hold of it somehow.
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message