camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arnaudeprez <arnaudep...@gmail.com>
Subject Re: AW: Split XML with xmlTokenizer and add root element?
Date Thu, 24 Apr 2014 12:32:33 GMT
Hi jhm,

I agree, this kind of stuff can be very useful especially for huge file
(otherwise we can use xslt and split combinaition).

The problem here is how to keep the configuration of the tokenizer simple.

For example, we can have : 
Input : 
<root>
    <header1>...</header1>
    <header2>...</header2>
    <body>
        <data>...</data>
        <data>...</data>
    </body>
    <footer>...</footer>
</root>

Expected splitted result : 

<root>
    <header>...</header>
    <body>
        <data>...</data>
    </body>
    <footer>...</footer>
</root>

<root>
    <header>...</header>
    <body>
        <data>...</data>
        <data>...</data>
    </body>
    <footer>...</footer>
</root>

We also may have a message with many "headers" and/or "footers".



--
View this message in context: http://camel.465427.n5.nabble.com/Split-XML-with-xmlTokenizer-and-add-root-element-tp5750237p5750529.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message