Language structure to XML conversion supports generation of XML messages whose length falls within certain compiler limits. Whitespace suppression and entity reference expansion is performed during creation of the XML document. Entity reference expansion increases the size of a message in relation to the number of special characters in the source language structure that need to be represented as one of the five predefined entity references in XML.
Avoid the use of the five predefined entires in XML when populating the language structure or define an auxiliary language structure(s) to generate the output XML in segments.