Figure 6-3 XML file generated with the Elements option

With the Attributes option all the column name are generated as attributes (Figure 6-3). The attribute name takes on the name of the column. Similarly, all the attributes are within the <PASSENGER_SCHEDULE_AIRCRAFT> element. (Figure 6-4).

Figure 6-4 XML file generated with the Attributes option

When the‘Primary key as attributes option is chosen, the XML file produced has the flight and membership columns generated as attributes, and the remaining columns as elements. The attribute with the foreign key aircraft still comes out as an element. When the Foreign key as links option, this column

106 The XML Files: Development of XML/XSL Applications Using WebSphere Studio

Page 122
Image 122
IBM Version 5 manual XML file generated with the Elements option