Re: Using XML elements from the body in the log method

2016-06-14 Thread anilc7
Hi, Yes the header solution works, thank you very much for your help. Cheers. Anil -- View this message in context: http://camel.465427.n5.nabble.com/Using-XML-elements-from-the-body-in-the-log-method-tp5783973p5784047.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using XML elements from the body in the log method

2016-06-14 Thread anilc7
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? -- View this message in context: http://camel.4654

Using XML elements from the body in the log method

2016-06-13 Thread anilc7
Hi, I have a simple route as shown below. The body is an XML message and I would like to access couple of elements from this XML and use them in both the log entries. Is there any way to access this using xpath/xquery or any other way within the log method? I would like to access them directly her