Hi,
Can you add some debug statements to your aggregator:

          newIn.setBody(oldBody + newBody); 

For example, what is oldBody and what is newBody?  Based on the error you
are receiving, you might be concatenating two XML documents like this:

<document1/>
<document2/>

This will not create a valid XML document because there will be two top
level elements.  You might try something like:

   newIn.setBody("<wrapper>" + oldBody + newBody + "</wrapper>");

Then you can strip the wrapper off in an XSLT or processor and combine the
two docs as they should be.

Thanks,
Yogesh 



--
View this message in context: 
http://camel.465427.n5.nabble.com/problem-in-aggregation-tp5717293p5717348.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to