Lesson 1.2: Add schema components
The XML schema editor provides the tools to easily generate XML
schema components without possessing an in depth knowledge of XML schema semantics.
Before you begin
About this task
The XML schema specification defines a large number of components such as complex types, simple types, groups, annotations, elements, attributes, and so on. To create a valid schema, you must understand the relationships between these components. For example, the <include>, <import> or <redefine> elements must appear before any other children of the schema element. An attribute can be added to a complex type, but not a simple type. There are many other relationships.
The XML schema editor removes the burden of remembering all these details. You can use the editor's Design view to add all of your schema components.
Add schema components
In these next steps, you will add several components to your schema,
including simple and complex types, and global elements:
Procedure
Results

Lesson checkpoint
With the XML Schema editor it is possible to create valuable XML
schema files without knowing all of the details and rules surrounding XML
schema.
Now that you have finished, you should be able to complete
the following:
- Add components to your XML schema
- Add information to a simple or complex type
- Create the enumeration facet to define a list of restrictions for a simple type.
- Add a global element to your XML schema