The
trim option specifies whether
whitespace (blanks,
newlines, tabs etc.) should be trimmed from text data before the data
is assigned to RPG variables
- all indicates that before text
content is assigned to the RPG character or UCS-2 variable, the following
steps will be done:
- Leading and trailing whitespace will be trimmed completely from
text content
- Strings of interior whitespace in the text content will be reduced
to a single blank
- none indicates that no whitespace will be trimmed from
text content. This option will have the best performance, but it should
only be used if the whitespace is wanted, or if the XML data is known
to contain no unwanted whitespace, or if the RPG program is going
to handle the removal of the whitespace itself.
Note: - Whitespace includes blank, tab, end-of-line, carriage-return,
and line-feed.
- This option applies only to XML data that is to be assigned to
character and UCS-2 RPG variables. Trimming of whitespace is always
done for other data types.
- This option is mainly provided for XML data from files, but it
also applies to XML data from a variable.
- Whitespace between XML elements is always ignored. The trim option
controls the whitespace within text content of elements and attributes.