The following sections display the output of the COBOL program that is run and the XML document that is generated.
Running the program (run example01) produces the following display:
Example-01 - Illustrate EXPORT FILE & IMPORT FILE address01.xml exported by XML EXPORT FILE Name: Specialty Cowboy Boots Company Address-1: 1050 North San Antonio Street Address-2: Suite 200 Address-3: Austin TX78701 Country: United States of America Time-Stamp: 2013/06/28 15:07:27.69 address01.xml imported by XML IMPORT FILE Name: Specialty Cowboy Boots Company Address-1: 1050 North San Antonio Street Address-2: Suite 200 Address-3: Austin TX78701 Country: United States of America Time-Stamp: 2013/06/28 15:07:27.69 You may inspect 'address01.xml' Status: +0000 Press a key to terminate:
Microsoft Internet Explorer may be used to view the generated XML document, address01.xml. The content of this document should appear as follows. (Note that Internet Explorer will differentiate among the various syntactical elements of XML by displaying them in different colors.)