Define an XML Model

This page describes the procedure to define an XML metadata. The reverse-engineering process requires an XSD schema. If no XSD file is available, a schema can be generated from an XML sample file.

Create An XML Metadata

To create a new XML metadata file:

  1. Click the metadata New Metadata button in the Project Explorer toolbar. The New Model wizard opens.

  2. In the Choose the type of Metadata tree view, select XML > XML Schema and then click Next.

  3. Select the parent folder or project for your new resource.

  4. Enter a File Name and then click Finish. The XML Wizard opens.

  5. Select a reverse-engineering mode and then press Next:

  6. Based on the chosen option, follow the instructions in the next section.

Reverse-Engineer The Model

Reverse-Engineer From An XSD Schema

  1. Click the browse button to select a file and populate the XSD File Path.

  2. If the selected schema contains recursive types declarations, set the Recursivity Depth to define the number of recursive occurrences to include to the model for these types.

  3. Press Next. The wizard transitions to the Selective Reverse step.

  4. A tree view shows all the nodes from the selected XML file. Optionally, unselect the nodes you want to exclude from the reverse-engineering.

  5. Click Finish.

  6. The reverse-engineered model is displayed in the metadata editor.

Reverse-Engineer From An XML Data File

  1. Click the browse button to select a file and populate the XML File Path. Press Next. The wizard transitions to the Selective Reverse step.

  2. A tree view shows all the nodes from the selected XML file. Optionally, unselect the nodes you want to exclude from the reverse-engineering.

  3. Click Finish.

  4. The reverse-engineered model is displayed in the metadata editor.

Reverse-Engineer From XML Data From The Clipboard

  1. If a valid XML payload is available in the clipboard, the Selected Reverse step opens.

  2. A tree view shows all the nodes from the selected XML file. Optionally, unselect the nodes you want to exclude from the reverse-engineering.

  3. Click Finish.

  4. The reverse-engineered model is displayed in the metadata editor.