Dear community,

I've a XML document in message body from what I need to retrieve a value by
a XPath expression. This expression is being set dynamically.

If I'm going to evaluate the XPath by setting a fixed value it works:

<setProperty propertyName="semanticValue1"><xpath
resultType="java.lang.String">/*/IDOC/E1WGRK1/E1WGRP1[1]/LIFNR/text()</xpath></setProperty>
<log message="semanticValue1: ${exchangeProperty.semanticValue1}" />

If I'm going to evaluate the XPath by this code it returns an empty value:

<setProperty propertyName="semanticValue1"><xpath
resultType="java.lang.String">function:simple(${exchangeProperty.semanticXPath1})</xpath></setProperty>
<log message="semanticValue1: ${exchangeProperty.semanticValue1}" />

Any hints are appreciated.

Best
- Gerald



--
View this message in context: 
http://camel.465427.n5.nabble.com/Issue-with-dynamic-XPath-expression-in-a-Camel-route-tp5784348.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to