PL/I

PL/I

PL/I

 View Only
Expand all | Collapse all

PL1 Sax Parser to handle DBCS data

  • 1.  PL1 Sax Parser to handle DBCS data

    Posted Mon September 17, 2018 04:42 AM

    Hi,

     

    I am trying to use the PL/I Sax parser to parse the input XML and retrieve the data from these XMLs.

    I have referred in the manuals that PLISAXC and PLISAXD parsers supports Unicode as well. But when I pass an XML input which has a DBCS character value(Unicode). It fails processing that.

    Getting below error,

    start_of_documentlength=               0                                        
    exception return_code = 0000000C reason_code =  001C3030 oncode      =           0               

     

    Does someone has idea on this error or any suggestion about XML parsing in Z/os for Unicode data in PL1                                                         

    Jeeva_S35


  • 2.  Re: PL1 Sax Parser to handle DBCS data

    Posted Mon September 17, 2018 07:31 AM

    Absent the document content, it's difficult to say what the problem may be. The reason code does suggest a bad character:

    3030 XRSN_CONTNT_CHAR_INVALID
    An incorrect character is found in element content
    Action: Change the document to correct the error and retry.

    One problem I've seen in this regard is that the document was translated from UTF-8 into EBCDIC using an ASCII translate table, which breaks multi-byte characters into separate invalid bytes.

    brataj