On Thu, Jun 28, 2012 at 3:48 PM, Kuido <[email protected]> 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: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
