XMLport (import) lost CRLF in Bigtext variable

lex03lex03 Member Posts: 3
Hi,

I have a problem with an XMLport.
In the XMLport there is a Bigtext element called ‘remark’.
In the xml file, that tag is a text with many CRLF.
In the XMLport I cut this Bigtext to pieces from maximal 80 positions, with a word-wrap.
This works fine, the only thing is that I lost my CRLF when I read the Bigtext variable.
So I get all the text but not in the normal format.

Does somebody know why this is happening and is there a solution for it.

(I know I can program this in a codeunit with the XMLparser instead of using a XMLport but I like to use an XMLport).

Btw: I use it for conversion: Excel => xmlfile => XMLport (import) => Comment Line.
Lex.

Comments

  • EugeneEugene Member Posts: 309
    are you sure you dont lose the CRLF in the process of doing this step:
    In the XMLport I cut this Bigtext to pieces from maximal 80 positions, with a word-wrap.
  • lex03lex03 Member Posts: 3
    No, as I debug, the CRLF are already gone by reading de Bigtext variable.
    Maybe here is something wrong, but if I write the Bigtext to a textfile instead of reading the Bigtext, they are also gone.
Sign In or Register to comment.