Thanks Claus.

How to access CamelSplitIndex using Spring DSL?

Actually I need to pass this split xml to a xslt and for each time I use that 
xslt, the split index needs to be passed and that value should be printed.

So if my file was 550 repeating structure, I need to create 5 files and one 
element for those files will have value as 1,2,3,4,5 depending on the split 
index.

vanshul

-----Original Message-----
From: Claus Ibsen [mailto:claus.ib...@gmail.com] 
Sent: Tuesday, October 27, 2015 2:08 PM
To: users@camel.apache.org
Subject: Re: Camel split using xpath for big xml

There is also xtokenizer which is a more specialized variation of tokenize 
xml=true

On Tue, Oct 27, 2015 at 9:35 AM, Vanshul.Chawla <vanshul.cha...@target.com> 
wrote:
> Got that
>
> <tokenize token="ShipmentLine" xml="true" group="100"/>
>
> -----Original Message-----
> From: Vanshul.Chawla [mailto:vanshul.cha...@target.com]
> Sent: Tuesday, October 27, 2015 1:54 PM
> To: users@camel.apache.org
> Subject: Camel split using xpath for big xml
>
> Hello All,
>
> We need to split a big xml containing a repeating element into multiple 
> messages each containing 100 count for that repeating element.
>
> So say repeating element occurs for 550 times, we need to get 6 xmls(5 with 
> 100 and last with 50 occurences).
>
> Tokenize has an option of group.Do we have similar option for xpath based 
> splitting also.
>
>
> Vanshul



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition

Reply via email to