Skip to Content
0
Former Member
Aug 12, 2015 at 04:21 AM

File Channel configuration

19 Views

Experts,

Scenario is xml to flatfile, my requirement is Multiple rows will come from sender, I need to create file/row.

Source structure:

<row>

<value1>one</value1>

<value2>two</value2>

<value3>three</value3>

<value4>four</value4>

</row>

<row>

<value1>five</value1>

<value2>six</value2>

<value3>seven</value3>

<value4>eight</value4>

</row>

Target XML Structure after mapping:

<MT_MessageType>

<Row>

<Header>

<value1>one</value1>

<value2>two</value2>

</Header>

<Detail>

<value3>three</value3>

<value4>four</value4>

</Detail>

</Row>

<Row>

<Header>

<value1>five</value1>

<value2>six</value2>

</Header>

<Detail>

<value3>seven</value3>

<value4>eight</value4>

</Detail>

</Row>

</MT_MessageType>

Resultant structure needs to be flatfile:

File1:

one

two

three

four

File2:

five

six

seven

eight

I have configured FCC parameters like below in file receiver communication channel. However expected output is not coming

Please help on this.

Recordset structure:Row,Header,Detail

Row.fieldSeparator 'nl'

Header.fieldSeparator 'nl'

Header.endSeperator 'nl'

Detail.beginSeperator 'nl'

Detail.fieldSeperator 'nl'

Detail.endSeperator 'nl'