Hi Aditya,

Could you please try org.milyn.delivery.DomModelCreator to have multiple
nodes with smooks mediator [1]
<https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.2.1/html/smooks_development_guide/configuring_smooks_to_capture_multiple_nodemodels1>
?


Thanks,
Prabushi

[1] -
https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.2.1/html/smooks_development_guide/configuring_smooks_to_capture_multiple_nodemodels1

On Mon, Jul 30, 2018 at 5:20 PM, aditya shivankar <
[email protected]> wrote:

> Respect Sir/Madam,
>
> Objective :  To split Huge input files into smaller files . Each splitted
> small file should contain as many number of records from big file as many
> as I configure somewhere in smooksConfig file, and not only one record in
> each file.
>
> Sample Input :
>
> <?xml version="1.0"?>
> <catalog>
> <library>
> <book1 id="lib-bk1">
> <name>headername</name>
> <title>headertitle</title>
> </book1>
> </library>
> <book id="bk101">
> <author>c</author>
> <title>d</title>
> </book>
> <book id="bk102">
> <author>e</author>
> <title>f</title>
> </book>
> <book id="bk103">
> <author>g</author>
> <title>h</title>
> </book>
> <book id="bk104">
> <author>i</author>
> <title>j</title>
> </book>
> <book id="bk105">
> <author>k</author>
> <title>l</title>
> </book>
> <book id="bk106">
> <author>c</author>
> <title>d</title>
> </book>
> <book id="bk107">
> <author>e</author>
> <title>f</title>
> </book>
> <book id="bk108">
> <author>g</author>
> <title>h</title>
> </book>
> <book id="bk109">
> <author>i</author>
> <title>j</title>
> </book>
> <book id="bk110">
> <author>k</author>
> <title>l</title>
> </book>
> </catalog>
>
> Current output :
>
> It is splitting 10 book records into 10 different files, each containing
> one record only.
>
>
>
>
> Current content of each splitted file is similar to below :
>
> With  each file  containing  only one record :
>
> <catalog>
> <library>
> <book id="lib-bk1">
> <name>headername</name>
> <title>headertitle</title>
> </book>
> </library>
> <book id="bk101">
> <author>c</author>
> <title>d</title>
> </book>
> </catalog>
>
> Expected output for sample:
>
> File should be splitted into four files only, with first three files
> consisting of 3 records each and last(fourth) file should consist of  last
> record.
>
>
> Please find what I tried below attached.,
>
> Proxy file        :"SmooksSample2.xml"
> and
> SmooksConfig file :"smooks-key2.xml"
>
> With  Regards,
> Aditya
> Mob : +91-8380080226
>



-- 
*Prabushi Samarakoon*
Mobile: +94715434580
Email: [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to