Hi

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


On Tue, Jun 19, 2012 at 11:44 PM, Deepthi <deepthi...@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: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to