camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Spring DSL XPATH namespace query syntax with header.in key
Date Fri, 29 Jun 2012 07:56:30 GMT
On Thu, Jun 28, 2012 at 3:48 PM, Kuido <kuido@xdoc.ee> wrote:
> Hello
>
> I am generating routes dynamically
> <camel:camelContext id="xdocCamelContext"
> xmlns:erp="http://e-arvetekeskus.eu/erp"
> xmlns="http://camel.apache.org/schema/spring">
>        <camel:routeBuilder ref="agentRouteBuilder" />
> ..
>
> xpath expression:
>
> <setHeader headerName="eArveYES">
>    <xpath>/erp:CompanyStatusResponse/erp:CompanyActive/text()</xpath>
>  </setHeader>
>
> gives error
> Invalid xpath: /erp:CompanyStatusResponse/erp:CompanyActive/text(). Reason:
> javax.xml.xpath.XPathExpressionException
>
> Is there some command to view CamelContext namespaces inside Karaf ?
> camel:context-list and  camel:context-info
>
> does'nt show CamelContext namespaces
>

There is a new logNamespaces option on xpath added to the upcoming Camel 2.10.
http://camel.apache.org/xpath


> Kuido
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Spring-DSL-XPATH-namespace-query-syntax-with-header-in-key-tp5715171p5715228.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message