Hi Santosh,
you can use an Aggregator with a custom AggregationStrategy to build
your output. One problem with the aggregator is that
it needs to determine when to send the aggregated exchange. So in the
example I used a timeout. This is not really good though.
So if possible for your case the
Hi Claus,
Thanks for replying,
I havn't tried spliting using *XPATH*, I Will try and revert.
Regards
Santosh
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-write-or-append-content-to-XML-file-without-XML-declaration-tp5014969p5016047.html
Sent from the Camel - Us
Hi Christian,
My xml is like this, having cities as root element
XYZ
1
ABC
1
XYZ
2
ABC
2
and
Hi Santosh,
you should also be aware that a file like the following is no valid xml.
XYZ
au
ABC
ad
An xml file has to contain exactly one root element.
Christian
Am 22.11.2011 23:13, schrieb santoshjoshi:
Environment
Camel:2.8.1
java 6
i have a pojo like
@XmlRootEle
Hi
Have you tried using xpath for splitting?
/city
...
There is some examples here
http://camel.apache.org/splitter
http://camel.apache.org/xpath
On Tue, Nov 22, 2011 at 11:13 PM, santoshjoshi
wrote:
> Environment
> Camel:2.8.1
> java 6
>
> i have a pojo like
>
> @XmlRootElement(name