Posted: Fri Dec 12, 2008 1:56 am Post subject: XML Parse in COBOL
I have experienced an issue with "encoding" in general using XML PARSE in Cobol program. I don't know why I have been got XML-CODE=70. When I remove the "encoding" I got -1 in XML-CODE. Does anyone knows what can be this problem ?
The actual document encoding was EBCDIC, and the CODEPAGE compiler option specified a supported EBCDIC code page, but the document encoding declaration did not specify a supported EBCDIC code page.
-1 in XML-CODE
When the parser returns control to your XML PARSE statement, special register XML-CODE contains the most recent value that was set by the parser (or by your processing procedure, if it sets XML-CODE to -1). For each event except the EXCEPTION event, the value of XML-CODE is zero. If your processing procedure sets XML-CODE to -1 before returning control to the parser for an event other than EXCEPTION, processing stops with a user-initiated COBOL exception condition. For the EXCEPTION event, special register XML-CODE contains the exception code.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum