< 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:

  1. From the menu bar, select Window > Open Perspective > Other. The Open Perspective dialog box opens.
  2. Click Resource.
  3. 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:

  1. Click File > New > Project.
  2. Expand the General folder and click Project, then click Next.
  3. In the Project name field, type XMLProject.
  4. Click Finish. Your project is displayed in the Navigator view.

Create an XML schema

You will now create a project to contain your XML schema by following these steps:

  1. Click File > New > Other.
  2. Expand the XML folder and click XML Schema. If you do not see the XML folder, select the Show All Wizards check box.
  3. Click Next. If you are prompted to enable XML Development capabilities, click OK.
  4. Select XMLProject and in the File name field, type University.xsd.
  5. 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 >