<oXygen/> User Guide

Chapter 4. Editing Documents

This chapter explains how to create, edit and manage files as part of a project within the Oxygen XML Editor.

Creating New Documents

Oxygen supports a number of Document Types, use the following procedure to create documents.

Procedure 4.1. Creating new documents

  1. Select File-> New (Ctrl+N). The New dialog is displayed which contains the supported Document Types: XML, XSL, XML Schema, Document Type Definition, Relax NG Schema, Text File, Java File, C File, C++ File, Batch File, Shell File, Properties File, SQL File, PHP File and PERL File.

  2. Select a document type, then click OK. If XML was selected the Create an XML Document dialog is displayed otherwise a new document is opened in the Editor Panel.

The Create an XML Document dialog enables definition of a XML Document Prolog using the system identifier of a XML Schema, DTD, Relax NG (full or compact syntax) schema or NRL (Namespace Routing Language) schema. As not all XML documents are required to have a Prolog, you may choose to skip this step by clicking OK. If the prolog is required complete the fields as the following.

Figure 4.1. The Create an XML Document Dialog - XML Schema Tab

The Create an XML Document Dialog - XML Schema Tab

Complete the dialog as follows:

Use a DTD, XML Schema, Relax NG or NRL schema

When checked enables selection between DTD, XML Schema, Relax NG schema or NRL schema.

URL

Specifies the location of an XML Schema Document (XSD).

Document Root

Populated from the elements defined in the specified XSD, enables selection of the element to be used as document root.

Namespace

Specifies the document namespace.

Figure 4.2. The Create an XML Document Dialog - DTD Tab

The Create an XML Document Dialog - DTD Tab

Complete the dialog as follows:

Use a DTD, XML Schema, Relax NG or NRL schema

When checked enables selection between DTD, XML Schema, Relax NG schema or NRL schema.

System ID

Specifies the location of a Document Type Definition (DTD).

Document Root

Populated from the elements defined in the specified DTD, enables selection of the element to be used as document root.

Public ID

Specifies the PUBLIC identifier declared in the Prolog.

Figure 4.3. The Create an XML Document Dialog - Relax NG Tab

The Create an XML Document Dialog - Relax NG Tab

Complete the dialog as follows:

Use a DTD, XML Schema, Relax NG or NRL schema

When checked enables selection between DTD, XML Schema, Relax NG schema or NRL schema.

URL

Specifies the location of a Relax NG schema in XML or compact syntax (RNG/RNC).

XML syntax

When checked the specified URL refers to a Relax NG schema in XML syntax. It will be checked automatically if the user selects a document with the .rng extension.

Compact syntax

When checked the specified URL refers to a Relax NG schema in compact syntax. It will be checked automatically if the user selects a document with the .rnc extension.

Document Root

Populated from the elements defined in the specified RNG or RNC document, enables selection of the element to be used as document root.

Namespace

Specifies the root element namespace.

Figure 4.4. The Create an XML Document Dialog - NRL Tab

The Create an XML Document Dialog - NRL Tab

Complete the dialog as follows:

Use a DTD, XML Schema, Relax NG or NRL schema

When checked enables selection between DTD, XML Schema, Relax NG schema or NRL schema.

URL

Specifies the location of a NRL schema (NRL).