Converting between schema languages

The Trang converter 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 Tools ->Trang Converter... (Ctrl+Alt+T) from the Project view contextual menu - the action Open with->Trang Converter 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. For example if you press the button Convert to ... while editing a Relax NG schema or DTD document the following dialog will be displayed:

 

Figure 4.41. Convert an edited schema

Convert an edited schema

Here you can set the target language of the conversion and the target schema name.