IBM Support

DFHML0101 1 Parser failed 0000000C 3026 when XML includes an ampersand &

Question & Answer


Question

Why is my XML application in CICS Transaction Server for z/OS (CICS TS) receiving a parse failure at an offset into my application that points to an ampersand character "&"? I receive this message:

DFHML0101 A Call to z/OS XML System Services parser for function Parse failed with return code x'0000000C' and reason code X'3026' at data offset X'000000000000040D'.

Answer

The literal & (ampersand) is not valid XML. The ampersand must be escaped within the XML as follows:

Use & in place of & .

Here is an example:

 Newspaper & Magazines

Reference link: How to escape "&" in XML?

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"XML Parser","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

CICS/TS CICSTS CICS TS CICS Transaction Server

Document Information

Modified date:
01 November 2018

UID

dwa1478234