Converting Between Schema Languages

The Generate/Convert Schema dialog box 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 XML Developer plugin generates an approximation of the source schema. Oxygen XML Developer plugin uses Trang multiple format converter to perform the actual schema conversions.

To open the Generate/Convert Schema dialog box, select the Generate/Convert Schema(Ctrl + Shift + \ (Meta + Shift + \ on OS X)) action from the XML Tools menu.

Figure: Convert a Schema to Other Schema Language

The language of the target schema is specified with one of the four options in the Output panel. Here you can also choose the encoding, the maximum line width and the number of spaces for one level of indentation.

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 following options are available:

Input panel:

Output panel:

Parent topic: Editing XML Documents Previous topic: Moving/Renaming XML Resources Next topic: Editing Modular XML Files in the Master Files Context