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: How to achieve both xpath and aggregator
Date Wed, 20 Jun 2012 04:07:44 GMT
Hi

I suggest to study the EIP patterns
http://camel.apache.org/eip


On Tue, Jun 19, 2012 at 11:44 PM, Deepthi <deepthi.t6@gmail.com> wrote:
> Hi,
>
> I have the following xml:
> <orders>
>  <order>
>    <id>1</id>
>    <date>XXX</date>
>  </order>
>   <order>
>    <id>2</id>
>    <date>XXX</date>
>  </order>
>   <order>
>    <id>1</id>
>    <date>XXX</date>
>  </order>
> </orders>
>
> I want to split the above xml to multiple xml's (based on order tag) and
> group the xml's which have same order id.
>
> So my out put should look like:
>
> XML 1:
> <orders>
>  <order>
>    <id>1</id>
>    <date>XXX</date>
>  </order>
>    <order>
>    <id>1</id>
>    <date>XXX</date>
>  </order>
> </orders>
>
> XML 2:
> <orders>
>   <order>
>    <id>2</id>
>    <date>XXX</date>
>  </order>
> </orders>
>
> How can i achieve this?
>
> Thanks,
> Deepthi
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-achieve-both-xpath-and-aggregator-tp5714691.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