camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepthi <deepthi...@gmail.com>
Subject How to achieve both xpath and aggregator
Date Tue, 19 Jun 2012 21:44:57 GMT
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.

Mime
View raw message