
Figure 9-5 Creating XML Schema
Add Content Model to the complex type.
Select the ct.
Add an Element Ref. under the model by:
Select the model
Set the reference as customer. Since the flight has one or more customers set the minimum to one and the maximum to unbounded.
Add two attributes to the flight node, flightNo and departure.
Select ct under Flight.
Next add two child elements to the customer node. Your XML Schema should look like Figure
Example
182 The XML Files: Development of XML/XSL Applications Using WebSphere Studio