On Wed, Aug 5, 2009 at 12:59 AM, Dragisa Krsmanovic<[email protected]> wrote:
>
> Camel 2.0-M3, trying setHeader like:
>
> <setHeader headerName="CamelFileName">
>   <xpath>substring(//atom:entry/atom:id/text(), 9)</xpath>
> </setHeader>
>
> //atom:entry/atom:id/text() returns correct result, but if I try to use any
> of the XPath functions I get this error:
>
> org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath:
> substring(//atom:entry/atom:id/text(), 9). Reason:
> javax.xml.xpath.XPathExpressionException
>
> Does Camel support XPath functions ?
>

Can you get a sample working with the XPath stuff in Java itself?
That will help us look into this.


> Thanks,
> Dragisa
> --
> View this message in context: 
> http://www.nabble.com/Error-when-using-XPath-functions-tp24817775p24817775.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to