PM71193: Rational Developer for System z (RDz) 220.127.116.11 COBOL and PLI-LS2XML conversion needs to escape CR
A fix is available
Closed as fixed if next.
Rational Developer for System z (RDz) 18.104.22.168 Due to http://www.w3.org/TR/REC-xml/#sec-line-ends a carriage return (CR) character will be converted to a line feed (LF) character when parsing an XML; a CR LF will be parsed to a single LF. If a PLI application programer adds a CR or CR LF to a response field in the application code, the converter running in ICON converts a CR or CR LF to UTF-8 without any escaping. Due to the XML parsing rule above an XML parser converts a CR or CR LF to a single LF. As a result the web service client application will see only a LF but not the original CR or CR LF. Therefore, the CR character should be escaped using ?#xD; (similar to ?, ?, ' and ') by the generated XML converter in the LS2XML phase. This problem occurs in COBOL-LS2XML environment also.
RD/z COBOL and PL/I Compiled LS2XML converters do not escape CR (0x0D) characters when generating XML. RD/z COBOL and PL/I Compiled LS2XML converters have been corrected to escape CR characters as
when generating XML element and attribute character content. Note: CR escaping applies only to XML elements and attributes for which the facet <whiteSpace="preserve"/> is in effect. This APAR is being closed FIN with concurrence from the submitting customer. This means that a fix to this APAR is expected to be delivered from IBM in a release which is being developed at the time that the APAR was closed. The latest release of the product to exit development at the time this APAR was closed was: Rational Developer for System z V8.5.1.
Reported component name
RATL DEV FOR SY
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Applicable component levels