Creating an XML schema file from scratch

Create an XML schema file to model your XML format data.

Before you begin

Ensure that you have an application, library, or integration project in which to create your XML schema file. If the XML schema file will be used by multiple solutions, consider creating it in a shared library for ease of reuse.

About this task

You can also use a shared library to map between different versions of an XML schema file. Both versions might declare the same elements and types, which cannot coexist in one application. You can build one shared library that contains version 1 of an XML schema file, and another shared library that contains version 2. You can then build a map that references the XML schema files in the shared libraries and maps between the two versions. At deployment time, separate models are built for each of the shared libraries. Therefore, no clash results from the duplicated elements and types.

Procedure

To create an XML schema file, complete the following steps.

  1. Click File > New > Other.
    A window opens in which you can select a wizard.
  2. Expand XML, select XML Schema File, click Next.
    The Create XML Schema wizard opens.
  3. Select a parent folder and enter a file name for your XML schema file.
  4. Click Finish.

Results

Your XML schema file is displayed under the appropriate application, library, or integration project in the Application Development view, and is opened in the XML Schema editor.

What to do next

  • Continue to edit your XML schema by using the XML Schema editor.