camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <souciance.eqdam.ras...@gmail.com>
Subject Re: Using XML elements from the body in the log method
Date Tue, 14 Jun 2016 10:42:10 GMT
Hi,

Yes, but you don't need to do that. It was just for reference. You can save
the xpath result in a header or exchange property and then log it.
.setHeader("myxpath", xpath("path"))
.log("The xpath result is ${header.myxpath}")

On Tue, Jun 14, 2016 at 11:19 AM, anilc7 [via Camel] <
ml-node+s465427n5784007h80@n5.nabble.com> wrote:

> Thank you very much for your reply, I did look at the link you provided,
> the problem there is, its using setBody method which overwrites the IN body
> message and I still need access to that.
>
> Is there any way of storing in some kind of variable?
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Using-XML-elements-from-the-body-in-the-log-method-tp5783973p5784007.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Using-XML-elements-from-the-body-in-the-log-method-tp5783973p5784010.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message