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 begin
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:
Procedure
- From the menu bar, select . 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:
Procedure
- Click .
- 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:
Procedure
- Click .
- 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.
Results
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