Re: @XPath evaluation

2012-09-10 Thread Willem jiang
It's here[1] [1]http://svn.apache.org/viewvc?view=revision&revision=1377955 -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.

Re: @XPath evaluation

2012-09-10 Thread Joe San
Willem Jiang, Could you please let me know where this xpath JUnit test was added? It would be great if you could let me know the JUnit class name? setHeader() should be able to take the XPath expression. > I just add unit test in the camel trunk to show it. > > setHeader("foo").xpath("/personFil

Re: @XPath evaluation

2012-08-28 Thread Willem jiang
Sorry, I missed that line. Thanks for commit the fix shortly. -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Ch

Re: @XPath evaluation

2012-08-28 Thread Babak Vahdat
@Willem, The new test being added *could* behave as "false-positive", because it lacks the call to: assertMockEndpointsSatisfied(); Babak Willem.Jiang wrote > > setHeader() should be able to take the XPath expression. > I just add unit test in the camel trunk to show it. > > setHeader("fo

Re: @XPath evaluation

2012-08-27 Thread Taariq Levack
Hi In what version of camel is this method setFileNameHeader? Or did you define it? BTW the filename should already be in the headers, check CamelFileName and CamelFileNameOnly Taariq On Tue, Aug 28, 2012 at 4:56 AM, Willem jiang wrote: > setHeader() should be able to take the XPath expression

Re: @XPath evaluation

2012-08-27 Thread Willem jiang
setHeader() should be able to take the XPath expression. I just add unit test in the camel trunk to show it. setHeader("foo").xpath("/personFile/text()"). -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://wil

Re: @XPath evaluation

2012-08-27 Thread Joe San
I managed to get that working. I have another question on the route configuration: Assuming the following xml snippet: 098765432.txt xyz Frankfurt joe 32 Germany sam 32 Germany The tas

Re: @XPath evaluation

2012-08-24 Thread Christian Müller
Yes, should be possible. Sent from a mobile device Am 24.08.2012 13:56 schrieb "Joe San" : > The most common language to use is XPath, which allows you to evaluate > XPath > expressions on the message body. For example, suppose the message contains > the following > XML document: > > > in pr