Enhancements have been made to XML Parse/Generate to provide compatibility with IBM® Enterprise COBOL for z/OS® v4.2.
New in XMLGENERATE:
- ATTRIBUTES phrase
- NAMESPACE and NAMESPACE-PREFIX phrases
- XML-DECLARATION phrase
New in XMLPARSE:
There are now two modes of XMLPARSE support using the XMLPARSE() compiler directive:
- XMLPARSE(COMPAT) – provides compatibility with IBM Enterprise COBOL for z/OS v4.1 and earlier.
- XMLPARSE(XMLSS) – provides compatibility with IBM Enterprise COBOL for z/OS v4.2.
XMLPARSE(XMLSS) provides:
- ENCODING phrase
- RETURNING NATIONAL phrase
- VALIDATING phrase
- New special registers - XML-NAMESPACE, XML-NNAMESPACE, XML-NAMEPSACE-PREFIX and XML-NNAMESPACE-PREFIX.
- New behaviors – for example, different return codes, different output registers depending on the EVENT.
Note: The ability to parse XML documents one segment at a time with the help of the END-OF-INPUT XML event is not supported yet.