Page 1 of 1

XML Parse in COBOL

Posted: Fri Dec 12, 2008 1:56 am
by pleonard
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 ?

Thanks
Paulo

Posted: Fri Dec 12, 2008 4:08 pm
by muraligaru1
Here is some info on XML-CODE = 70

70
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.

Posted: Fri Dec 12, 2008 7:06 pm
by pleonard
I have encoding="UTF-8" which causing xml-code 70 when parse the XML document. When I remove the encoding I got xml-code -1 (I don't set this in the program).

Topic deleted by Admin

Posted: Sat Jan 30, 2016 11:31 pm
by academyindia4
<< Content deleted By Admin >>

Topic deleted by Admin

Posted: Wed Feb 03, 2016 11:07 pm
by academyindia4
<< Content deleted By Admin >>