Converting Between Schema Languages

The Generate/Convert Schema allows you to convert a DTD or Relax NG (full or compact syntax) schema or a set of XML files to an equivalent XML Schema, DTD or Relax NG (full or compact syntax) schema. Where perfect equivalence is not possible due to limitations of the target language Oxygen will generate an approximation of the source schema.

The conversion functionality is available from XML Tools > Generate/Convert Schema... (Ctrl+Shift+\) ( (Cmd+Shift+/ on Mac OS)) and from the toolbar button Convert to... .

A schema being edited can be converted with just one click on a toolbar button if that schema can be the subject of a supported conversion.

Convert a Schema to Other Schema Language

The language of the target schema is specified with one of the four radio buttons of the Output panel. The encoding, the maximum line width and the number of spaces for one level of indentation can be also specified in this panel.

The conversion can be further fine-tuned by specifying more advanced options available from the Advanced options button. For example if the input is a DTD and the output is an XML Schema the advanced options are:

Convert a Schema to Other Schema Language - Advanced Options

For the Input panel:

For the Output panel: