The following sections display the output of the COBOL program that is run and the XML document that is generated.
Running the program (run example09) produces the following display:
Example-09 - Illustrate TRANSFORM FILE address09a.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/07/02 12:45:11.29 address09a.xml transformed into address09b.xml by XML TRANSFORM FILE address09b.xml transformed into address09c.xml by XML TRANSFORM FILE address09c.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/07/02 12:45:11.29 address09c.xml transformed into address09d.xml by XML TRANSFORM FILE You may inspect 'address09a.xml' - 'address09d.xml' Status: +0000 Press a key to terminate:
Microsoft Internet Explorer may be used to view the generated XML documents, address09a.xml, address09b.xml, address09c.xml, and address09d.xml. Their content of these documents should appear as follows. (Note that Internet Explorer will differentiate among the various syntactical elements of XML by displaying them in different colors.)
address09a.xml - Internal format (similar to address01.xml)
address09b.xml - External format (similar to address02.xml)
address09c.xml - Internal format restored
address09d.xml - Internal format plus COBOL attributes