Flight

global element

@flightNo

@departure

attribute

attribute

Customer

global element

name

membership

element

element

Figure 9-4 PassengerList DOM Tree

The XML Schema editor has a Design view and a Source view. The Outline view and eliminate the need for a knowledge of XSD syntax, but developers who prefer to directly edit the file can work with the source view. The Design view presents a form-based user interface that is synchronized with the outline and Source view. When a part of the schema is selected in the Outline view, it can be changed in the Design view.

Next, we have to add contents to the schema. Take these steps to accomplish this:

1.Add two global elements, Flight and Customer, and set type information to user-defined complex type.

2.Select root node.

3.Right-click Add Global Element (Figure 9-5).

Chapter 9. Developing XML Web services 181

Page 197
Image 197
IBM Version 5 manual Select root node, PassengerList DOM Tree