camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale King <dalewk...@gmail.com>
Subject Re: Is it possible to include XPath expression in simple expression?
Date Thu, 19 Sep 2013 18:33:59 GMT
The way to do it is to set a header using the xpath and then use the
header's value in the simple expression.


On Thu, Sep 19, 2013 at 12:54 PM, Robert Simmons <kraythe@gmail.com> wrote:

> You can use the scripts component and use xpath by itself.
>
> Sent from my iPad
>
> > On Sep 19, 2013, at 10:25 AM, bonnahu <bonnahu@gmail.com> wrote:
> >
> > Hi guys,
> > I am wondering whether there is a way to do something like below:
> >
> >
> <simple>${date:now:yyyyMMdd-HHmm}-incomingOrder-${@XPath("/order/@customerId")}-.xml</simple>
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Is-it-possible-to-include-XPath-expression-in-simple-expression-tp5739830.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Dale King

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message