Hi Claus, Thanks for the clarification.
- Simon -----Ursprüngliche Nachricht----- Von: Claus Ibsen <claus.ib...@gmail.com> 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 write your own processor / bean that does the logging. On Thu, Aug 4, 2022 at 8:36 AM Simon Martinelli <si...@martinelli.ch> wrote: > 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 > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2