|            This is documentation for Semarchy xDI 2024.2, which is no longer supported. For more information, see our Global Support and Maintenance Policy.  |       
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: 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: xDI Designer will use XML content from the clipboard to reverse-engineer the model. See Reverse-engineer from clipboard XML data.
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 clipboard XML data
- 
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.