Re: Xpath and namespaces in "hybrid" camel context

2014-08-29 Thread Claus Ibsen
SpringCamelContext object, or in the tag... but I > couldn't find any solution. Do you have any suggestion? > > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Xpath-and-namespaces-in-hybrid-camel-context-tp5755823.html > Sent fro

Xpath and namespaces in "hybrid" camel context

2014-08-28 Thread tonytt
ave any of these tags. We should be able to configure it somewhere in the SpringCamelContext object, or in the tag... but I couldn't find any solution. Do you have any suggestion? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Xpath-and-namespaces-in-hybri

Re: xpath and namespaces

2012-04-27 Thread Bob Jolliffe
Yes thanks Marco. I'd also figured this is the best workaround for the moment. It makes for ugly xpath expressions and fortunately we don't have much likliehood of namespace clashes, but it does work :-) On 27 April 2012 14:16, Marco Westermann wrote: > Hi, > > I'm not sure if this is suitable

Re: xpath and namespaces

2012-04-27 Thread Marco Westermann
Hi, I'm not sure if this is suitable for you in your use case, but in this cases where namespaces doesn't work I don't refer to namespaces in my xpath like: .split().xpath("/*[local-name() = 'dxf']/*[local-name() = 'organisationUnits']/*[local-name() = 'organisationUnit']") regards, Marco

Re: xpath and namespaces

2012-04-27 Thread Claus Ibsen
Hi I logged a ticket to not forget about this https://issues.apache.org/jira/browse/CAMEL-5231 -- Claus Ibsen - CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog:

Re: xpath and namespaces

2012-04-24 Thread Claus Ibsen
On Tue, Apr 24, 2012 at 11:23 PM, Bob Jolliffe wrote: > On 24 April 2012 16:36, Claus Ibsen wrote: >> On Tue, Apr 24, 2012 at 5:11 PM, Bob Jolliffe wrote: >>> On 24 April 2012 15:22, Claus Ibsen wrote: Hi Thanks Just to be sure how do you refer to this external file? >>

Re: xpath and namespaces

2012-04-24 Thread Bob Jolliffe
On 24 April 2012 16:36, Claus Ibsen wrote: > On Tue, Apr 24, 2012 at 5:11 PM, Bob Jolliffe wrote: >> On 24 April 2012 15:22, Claus Ibsen wrote: >>> Hi >>> >>> Thanks >>> >>> Just to be sure how do you refer to this external file? >>> >> >> I'm loading it with: >> >> FileInputStream is = new File

Re: xpath and namespaces

2012-04-24 Thread Claus Ibsen
On Tue, Apr 24, 2012 at 5:11 PM, Bob Jolliffe wrote: > On 24 April 2012 15:22, Claus Ibsen wrote: >> Hi >> >> Thanks >> >> Just to be sure how do you refer to this external file? >> > > I'm loading it with: > > FileInputStream is = new FileInputStream( file ); > > try > { >     RoutesDefinition r

Re: xpath and namespaces

2012-04-24 Thread Bob Jolliffe
On 24 April 2012 15:22, Claus Ibsen wrote: > Hi > > Thanks > > Just to be sure how do you refer to this external file? > I'm loading it with: FileInputStream is = new FileInputStream( file ); try { RoutesDefinition routes = camelContext.loadRoutesDefinition( is ); camelContext.addRout

Re: xpath and namespaces

2012-04-24 Thread Claus Ibsen
Hi Thanks Just to be sure how do you refer to this external file? On Mon, Apr 23, 2012 at 6:54 PM, Bob Jolliffe wrote: > On 23 April 2012 17:29, Claus Ibsen wrote: >> Hi >> >> Do you declare the route in an external file, or how do you refer to >> the xml file with that route? >> Maybe you

Re: xpath and namespaces

2012-04-23 Thread Bob Jolliffe
On 23 April 2012 17:29, Claus Ibsen wrote: > Hi > > Do you declare the route in an external file, or how do you refer to > the xml file with that route? > Maybe you can post your full XML files. I have the route declared in an external file. The following is a complete listing of the file which

Re: xpath and namespaces

2012-04-23 Thread Claus Ibsen
Hi Do you declare the route in an external file, or how do you refer to the xml file with that route? Maybe you can post your full XML files. On Mon, Apr 23, 2012 at 6:23 PM, Bob Jolliffe wrote: > I have an application where I load a camel context using spring and > then add different spring ds

xpath and namespaces

2012-04-23 Thread Bob Jolliffe
I have an application where I load a camel context using spring and then add different spring dsl routes particular to individual site configurations. I am having trouble using an XPath splitter because of the issue with making namespaces visible to the XPath processor. I've seen from here (http: