Skip to Content
0
Former Member
Feb 19, 2009 at 05:04 PM

Adapter file Receive - conversion file problem

21 Views

Hi everybody,

In an adapter file receiver, I want to convert an XML structure to a "flat file".

here is my xml structure

<ns1:MT006_blabka>

<RECORD>

<LIGNE>TEST1</LIGNE>

<LIGNE>TEST2</LIGNE>

</RECORD>

<FILE>

<FILENAME>fichier.dat</FILENAME>

<DIRECTORY>//server1/root/</DIRECTORY>

</FILE>

</ns1:MT006_blabla>

and the text file I want to receive is

<BOF>

TEST1

TEST2

<EOF>

The problem is with the paramter of conversion I use I receive

<BOF>

TEST1

TEST2

<EOF>

I always receive an empty line at the end

The record set define in conversion are "RECORD,FILE"

in parameter i put

RECORD.fieldSeparator value : 'nl'

FILE.fieldFixedlengths value : 0,0

My problem is to eliminate the empty line at the end of the file.

Is there someone who can help me ?

Thank you in advance for your collaboration.

Regards

Eric.