IBM Support

The Cobol XML PARSE is not detecting these three invalid XML characters (>) (") (')

Troubleshooting


Problem

Any of the five attribute characters (ampersand) (apostrophe) (less than) (greater than) (quote) should give XML-CODE errors such as 126 or 141. Only the (<) and the (&) give errors as expected.

Cause

This is correct as is. The (>) (") and (') should not give errors.

Environment

Enterprise COBOL version 3.4.1 or version 4.1.0 with option XMLPARSE(COMPAT).

Resolving The Problem

Pages 490 & 491 of the Enterprise COBOL Programming Guide V3R4 list the five ATTRIBUTE-CHARACTER and CONTENT-CHARACTER namely &amp; &apos; &gt; &lt; &quot;
The following URL explains why only the less than and the ampersand give errors. Click on www.w3.org Explanation just below.

(Similar information is in Chapter 3 of the Enterprise COBOL V4R1 Language Reference, but it does not include the exact list of characters.)

[{"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Runtime","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"3.4;4.1","Edition":"","Line of Business":{"code":"LOB17","label":"Mainframe TPS"}}]

Historical Number

PMR_39753_49R_000

Document Information

Modified date:
08 August 2018

UID

swg21252330