RelaxNG Schema Editor

Visual Schema Editor

The schema diagram simplifies the development and understanding of the Relax NG schema files. oXygen offers a side-by-side presentation of the schema source and diagram. The diagram is synchronized in real time with the source editor. Selecting an element in the diagram highlights the corresponding element in the source editor, while moving the caret in the source editor changes the selection in the Diagram view.

The schema diagram renders all the Relax NG components and allows you to quickly navigate to the referenced definition of elements, attributes, types, groups, or patterns.

Visual Relax NG Schema Editor
Logical Model View

Two types of visual diagrams are available for a schema: the Full Model view and the Logical Model view.

  • Full Model View

    The Full Model view provides a one-to-one correspondence between the schema components and the graphical nodes. References to different components can be expanded in-place within the diagram (for instance, element or attribute references, base types, or schemas that the pattern references).

  • Logical Model View

    The Logical Model view displays a more compact diagram obtained by applying the simplification rules.

A list of the defined schema components (elements, attributes, patterns, etc.), presented in the Outline view, simplifies the navigation through large schemas.

Regardless of the schema language, the smooth editing and the clear and suggestive rendering make schema editing more fun and easier than ever.

The Visual Relax NG Schema Editor is integrated in the oXygen standalone distribution and the Eclipse IDE plugin. It is activated when opening an RNG (Relax NG XML Syntax) file.

Editing actions are available in the Full Model view allowing the addition of new child or sibling elements on the fly so that the schema remains valid.

Zoom Support for Diagrams

You can easily change the font used for the diagram, and you can also make the diagrams smaller or larger, depending on the zoom settings available in Options / Preferences / Editor / Edit modes / Schema Design. These settings are used when the diagram is printed.

Content Completion Assistant Shows the Relax NG Schema Documentation

Content completion

The Relax NG schema documentation is presented by the new content completion support. The Content Completion Assistant offers additional information for the element and attribute proposals. The documentation for the schema annotations is displayed in a simple and elegant manner.

Relax NG Schema Model View

Schema Model View

The Model view provides schema-related information for the document elements and attributes. The content model, element type, attributes, attribute type, and constraints are presented in a compact manner giving you the insight of the document schema while editing or browsing the document.

Rename Component Schema Refactoring Action

This action allows you to rename any defined names. The scope can be set to the current file, all the files in project, or the set of files determined by include/import instructions starting with a specified file.

A preview option allows you to review and approve the changes that will be made on multiple schemas. The changes are presented in a side-by-side, synchronized view that compares the initial version with what will result after applying the refactoring action.

Find References and Declarations of XML Schema Components

You can find either declarations or references of Relax NG components. The search scope can be the current file, the current project, or a group of files.

Converting Between Grammar Languages

The converter allows you to convert a DTD or Relax NG (full or compact syntax) grammar, or a set of XML files to an equivalent XML Schema, DTD, or Relax NG (full or compact syntax) grammar. Where exact equivalence is not possible due to limitations of the target language, oXygen will generate an approximation of the source grammar. The conversion functionality is available from Tools / Generate/Convert Schema.

A grammar being edited can be converted with a toolbar button if that grammar can be the subject of a supported conversion. For example, if you press the "Convert to ..." button while editing a DTD document, the following dialog will appear:

Convert to ...

You can set the target language of the conversion and the target grammar name.

Advanced options allow the user to customize various conversion parameters.

Advanced options
Video Tutorials
Upcoming Events
oXygen-Users Meetup London 2015
oXygen-Users Meetup
June 5, 2015
London, UK
" oXygen XML Editor is the premier text editor for XML geeks, and an indispensable tool for O'Reilly's Production group. My team uses oXygen XML Editor for everything from simple XML editing to Schema validation and XSLT transformations. The digital production staff especially loves oXygen's built-in EPUB support, which eliminates a great deal of the grunt work that is usually entailed in editing EPUB files. The more we use oXygen, the more realize what a powerful tool it can be in digital and XML-based workflows."
Adam Witwer
Director of Content and Publishing Operations
O'Reilly Media