Creating a new project

Procedure 4.9. Create an <oXygen/> XML project

  1. Select FileNew-> Other (Ctrl+N) or press the New toolbar button. The New wizard is displayed which contains the list entry XML Project.

    Figure 4.48. The New wizard

    The New wizard

  2. Select XML Project in the list of document types and click the Next button.

    Figure 4.49. The XML Project wizard - step 1

    The XML Project wizard - step 1

  3. Type a name for the new project and click the Next button.

    Figure 4.50. The XML Project wizard - step 2

    The XML Project wizard - step 2

  4. Select other Eclipse projects that you want to reference in the new project and click the Finish button.

The files are organized in a XML project usually as a collection of folders. They are created and deleted with the usual Eclipse actions.

The currently selected files associated to the <oXygen/> pluginin the Package Explorer view can be validated against a schema of type Schematron, XML Schema, Relax NG, NRL, NVDL, or a combination of the later with Schematron with one of the actions Validate and Validate With ... available on the Batch Validation submenu of the right-click menu of the Package Explorer view. This together with the logical folder support of the project allows you to group your files and validate them very easily.

If the resources from a linked folder in the project have been changed outside the view you can refresh the content of the folder by using the Refresh action from the contextual menu. The action is also performed when selecting the linked resource and pressing F5 key