
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
86 The XML Files: Development of XML/XSL Applications Using WebSphere Studio