The following sections display the output of the COBOL program that is run and the XML document that is generated.
Running the program (run example11) produces the following display:
Example-11 - Illustrate IMPORT with missing intermediate names address11.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 13:58:13.62 address11.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 13:58:13.62 x-address11.xml imported by XML IMPORT FILE: Name: Wild Hair Corporation Address-1: 3543 Hair Court Address-2: Sweet 800 Address-3: Lostin TX78787 Country: United States of America Time-Stamp: 00:00:00.00 You may inspect 'address11.xml' & 'x-address11.xml' Status: +0000 Press a key to terminate:
Microsoft Internet Explorer may be used to view the generated XML document, address11.xml and the predefined XML document x-address11.xml. (Note that Internet Explorer will differentiate among the various syntactical elements of XML by displaying them in different colors.)
address11.xml
xaddress11.xml