Skip to Content
0
Former Member
Nov 13, 2009 at 04:34 PM

mapping Split 1:n to different communication channel

32 Views

Hi All,

I have this scenario: File XML->XI7.0->Flat File(different encoding)

The source file contains multiline of users data. I use mapping 1:n to split the users data into different message splitting on language.

For example:

INPUT:

<users>

<name>Pippo</name>

<language>Japainese</language>

</users>

<users>

<name>Paperino</name>

<language>Chinese</language>

</users>

<users>

<name>Topolino</name>

<language>English</language>

</users>

<users>

<name>Minnie</name>

<language>Japainese</language>

</users>

<users>

<name>Pluto</name>

<language>Chinese</language>

</users>

OUTPUT:

<msg1>

<users>

<name>Pippo</name>

<language>Japainese</language>

</users>

<users>

<name>Minnie</name>

<language>Japainese</language>

</users>

</msg1>

<msg2>

<users>

<name>Paperino</name>

<language>Chinese</language>

</users>

<users>

<name>Pluto</name>

<language>Chinese</language>

</users>

</msg2>

<msg3>

<users>

<name>Topolino</name>

<language>English</language>

</users>

</msg3>

This step is OK.

Now, I would like to write the different message (msg1, msg2, msg3) to different flat file using different Communication channel

because I want to use different file encoding parameter based on language.

Can anyone tell me how this can be achieved?

thanks a lot

Daniele