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:
-
Click the New Metadata button in the Project Explorer toolbar. The New Model wizard opens.
-
In the Choose the type of Metadata tree view, select XML > XML Schema and then click Next.
-
Select the parent folder or project for your new resource.
-
Enter a File Name and then click Finish. The XML Wizard opens.
-
Select a reverse-engineering mode and then press Next:
-
Reverse from an Xsd file: The reverse-engineering process will use an XSD schema file to determine the model. See Reverse-Engineer From An XSD Schema.
-
Reverse from an Xml data file: Semarchy xDI Designer will use an XML data file to reverse-engineer the model. See Reverse-Engineer From An XML Data File.
-
Reverse from Xml data contained in clipboard: Semarchy xDI Designer will use XML content from the clipboard to reverse-engineer the model. See Reverse-Engineer From XML Data From The Clipboard.
The XML content must already be in the clipboard when you select this option and press Next.
-
-
Based on the chosen option, follow the instructions in the next section.
Reverse-Engineer The Model
Reverse-Engineer From An XSD Schema
-
Click the button to select a file and populate the XSD File Path.
-
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.
-
Press Next. The wizard transitions to the Selective Reverse step.
-
A tree view shows all the nodes from the selected XML file. Optionally, unselect the nodes you want to exclude from the reverse-engineering.
-
Click Finish.
-
The reverse-engineered model is displayed in the metadata editor.
Reverse-Engineer From An XML Data File
-
Click the button to select a file and populate the XML File Path. Press Next. The wizard transitions to the Selective Reverse step.
-
A tree view shows all the nodes from the selected XML file. Optionally, unselect the nodes you want to exclude from the reverse-engineering.
-
Click Finish.
-
The reverse-engineered model is displayed in the metadata editor.
Reverse-Engineer From XML Data From The Clipboard
-
If a valid XML payload is available in the clipboard, the Selected Reverse step opens.
-
A tree view shows all the nodes from the selected XML file. Optionally, unselect the nodes you want to exclude from the reverse-engineering.
-
Click Finish.
-
The reverse-engineered model is displayed in the metadata editor.