Passing Carriage Return And Line Feed (CR_LF) Characters In XML
Description
Normally CR/LF characters are stripped out of XML when it is parsed.
Solution
To encode these characters so that they can be used format a paragraph field, the following procedure needs to be followed. We can send down two variables called *ENCODECR & *ENCODELF. They are used in the following way in the XML.
<pre class="syntaxhighlighter-pre" xml:space="preserve"><variable name="*ENCODECR">124</variable><variable name="*ENCODELF">126</variable></pre>
These commands tell Loftware to substitute a CR where there is a "|" (ASCII Dec 124) in the data and substitute a LF where there is a "~" (ASCII Dec 126) in the data.
Note: You can substitute any ASCII character of your choice but these are not frequently used and easiest to reproduce since they are normally mapped to the keyboard
You would then send down the data as shown below.
<pre class="syntaxhighlighter-pre" xml:space="preserve"><variable name="Paragraph Data">LINE1|~LINE2|~LINE3</variable</pre>
Output in the paragraph field would appear in this format:
LINE1
LINE2
LINE3
Article Number
2008026
Versions
All supported versions of LLM/LPS.
Environment
All supported installation environments.