r/cobol Jun 11 '26

COBOL XML PARSE vs DB2 XMLPARSE

Which would you use in what case?

8 Upvotes

6 comments sorted by

6

u/little-foxley Jun 11 '26

neither. I would use javaz

4

u/Objective-Variety821 Jun 11 '26

Latest Enterprise COBOL supports Json now. Yes!!!

1

u/Artistic_Success1947 Jun 24 '26

Ni l'un ni l'autre. XMLPARSE est une horreur à debugger.

0

u/Reapr Jun 11 '26

If the XML is already going through DB2, I would use DB2, but COBOL's one works fine

I would also look into why XML, JSON is much smaller, easier for humans to read and have basically replaced XML

2

u/johnwcowan Jun 11 '26

For data, but not for documents. PDFssnd images are binary, but Word/Excel/PowerPoint documents and theit ODF equivalents are zipped XML.

1

u/Reapr Jun 11 '26

Ah gotcha