IBM Version 5 manual Using the Outline view to add schema components, XML Schema Editor

Models: Version 5

1 340
Download 340 pages 15.44 Kb
Page 102
Image 102

Figure 5-5 XML Schema Editor

In order to handle the contents of a schema file, you can use the Outline view to add, remove, or rearrange components of your schema. When you select an object in the Outline view, the Design view will display the properties that are associated with that schema component object. you can use the Design view to enter values for the selected object. You can switch to the Source view to edit the schema source directly. The XML Schema editor also uses the Task view from the workbench for errors reporting.

Using the Outline view to add schema components

The XML Schema specification defines a large number of components such as schema, complexType, simpleType, group, annotation, include, import, element, and attribute, etc. To create a valid schema, you must understand the containment relationships between these components. For example, an attribute can only be added to a complex type, but not a simple type. A group can only be defined at the schema level, but can be referenced by a complex type, etc.

The XML Schema editor removes the burden to remember all these details for you. You can use the Outline view to add schema components via the pop-up menu, as shown in Figure 5-6 on page 87. The pop-up menu will only display the list of objects that are relevant for the selected object. It will also add the object at the correct location in the XML Schema.

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

Page 102
Image 102
IBM Version 5 manual Using the Outline view to add schema components, XML Schema Editor