Creating XML schemas

You can create an XML schema and then edit it using the XML schema editor.

To create an XML schema, follow these steps:
  1. Create a project to contain the XML schema. If you intend to generate Java™ beans from your XML schema, we recommend that you create a Java project to contain both the schema and the beans. The beans must be contained in a Java project, however, the XML schema does not have to be. Otherwise, it does not matter what kind of project you create.
  2. In the workbench, select File > New > Other > XML > XML Schema. Click Next. If you cannot see the XML option, select the Show All Wizards check box.
  3. Select the project or folder that will contain the XML schema. In the File name field, type the name of the XML schema, for example MyXMLSchema.xsd. The name of your XML schema must end in .xsd
  4. Click Finish.
The XML schema opens in the XML schema editor.

Related concepts
XML schema editor

Related tasks
Editing XML schema properties
Validating an XML schema

(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.