Hi Claus,
Thanks for the clarification.
- Simon
-Ursprüngliche Nachricht-
Von: Claus Ibsen
Gesendet: Donnerstag, 4. August 2022 09:05
An: users@camel.apache.org
Betreff: Re: Log XPath
Hi
This is not possible with log as it works with simple syntax only.
What you do is correct, or
Hi
This is not possible with log as it works with simple syntax only.
What you do is correct, or write your own processor / bean that does the
logging.
On Thu, Aug 4, 2022 at 8:36 AM Simon Martinelli wrote:
> Hi,
> How can I log an xpath?
>
> This is not possible:
> .log
Hi,
How can I log an xpath?
This is not possible:
.log("xpath("//name")
As a workaround I use:
.setHeader("xpath", xpath("//name"))
.log(${headers.xpath}")
But this doesn't feel right.
Any help is appreciated
Simon