79704518

Date: 2025-07-17 08:35:58
Score: 0.5
Natty:
Report link

I haven't tried this option.

When I needed to work with XML, I used xml-sax

xml-sax(e) %handler(XMLHandler : dsCommArea) %xml(uMsgBody : 'ccsid=ucs2');
if %error;
  ...
endif;

the original xml was in a string that was previously converted to ucs2.

As far as I remember, one of the event types in xml handler is *XML_EXCEPTION and one of the parameters is exceptionId. Maybe it's worth trying to intercept this event?

And I also remember that there were some problems with recognizing and parsing [CDATA] blocks - I had to parse them manually because SAX itself did not recognize them quite adequately.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Victor Pomortseff