XML - sample program showing how to read an XML file

0 Likes

Problem:

Program makes calls to C$XML to read an XML file, it comes out mostly ok but the attribute data is missing.  Is there a sample program demonstrating how to do this?

Resolution:

The attached sample program, readxml.cbl, reads any XML file using C$XML.

It displays the contents in a two-column list-box.  Column one contains the name of the tag or attribute and column two contains the corresponding data.

Use this sample program as a model for parsing most XML files.

Attachments:

readxml.cbl

Old KB# 2773
Comment List
Anonymous
Related Discussions
Recommended