This content has been marked as final.
Show 4 replies
-
1. Re: Aggregating using XPath
stlewis Jun 4, 2009 9:43 AM (in response to jamie3_james.archibald)Torsten has an excellent blog post which goes over a similar use case to what you're doing : http://tmielke.blogspot.com/2009/01/using-camel-aggregator-correctly.html
-
2. Re: Aggregating using XPath
davsclaus Jun 4, 2009 11:02 AM (in response to stlewis)Yeah that blog post is excellent.
In the xpath you can set an attribute to determine the result type. So you can set it as a java.lang.String to have a good key for your correlation expression.
But definitely read the blog post. That is why we added a link to it from the Camel Aggregation wiki page
-
3. Re: Aggregating using XPath
jamie3_james.archibald Jun 4, 2009 11:36 AM (in response to davsclaus)Ok perfect.
After reading it looks like I need an spring equivalent of
xpath("("/artist/@genre", String.class).
-
4. Re: Aggregating using XPath
davsclaus Jun 4, 2009 12:51 PM (in response to jamie3_james.archibald)Something like this: