we can't have any footers because that will force the tokenizer to parse the entire document before start splitting the tokens.
2014-04-24 14:32 GMT+02:00 arnaudeprez <arnaudep...@gmail.com>: > 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.