< Previous
|
Next >
Lesson 1.1: Create your XML schema
XML Schema files provide a set of rules which define the structure and semantics of an XML document.
Before you can create an XML schema and begin adding components to it, you must first create a project to contain your schema.
Switch to the Resource perspective
When developing XML projects, you will need to work in the Resources perspective. Follow these steps to switch to the Resource perspective:
From the menu bar, select
Window
>
Open Perspective
>
Other
. The Open Perspective dialog box opens.
Click
Resource
.
Click
OK
. The Resource perspective will open.
Create a project
You will now create a project to contain your XML schema by following these steps:
Click
File
>
New
>
Project
.
Expand the
General
folder and click
Project
, then click
Next
.
In the Project name field, type
XMLProject
.
Click
Finish
.
Your project is displayed in the Navigator view.
Create an XML schema
You will now create a XML schema by following these steps:
Click
File
>
New
>
Other
.
Expand the XML folder and click
XML Schema
. If you do not see the XML folder, select the
Show All Wizards
check box.
Click
Next
. If you are prompted to enable XML Development capabilities, click
OK
.
Select XMLProject and in the
File name
field, type
University.xsd
.
Click
Finish
.
The University.xsd file is created and opened in the XML schema editor.
Lesson checkpoint
The wizard allows you to quickly create a starting template for an XML Schema.
Now that you have completed this lesson, you should be able to:
Switch perspectives
Create a new project
Create an XML Schema
< Previous
|
Next >
Feedback