The XML Schema (XSD) to XML instance generator tool is useful for generating sample XML messages based on an XML Schema (XSD) document. It is accessible under XSD->XML tab under the Tools tab.


The first step is to add a schema file by uploading it to the server. This is done by clicking on ‘Add’ and uploading either a single schema file (.xsd) or a zip file containing the main schema file and its references.


The uploaded schema file is displayed in a table on the left and clicking on the schema file name, displays the contents in the editor (Schema tab) on the right. The ‘Save’ and ‘Revert’ buttons under the Schema tab can be used to make changes to the schema being edited or revert any unsaved changes.  

When the schema is displayed, the Root Element drop-down box displays all the root elements declared in the schema file, which can be used as the starting root element in the generated XML file.   The screenshot below shows the process of selecting a root element in a schema file:


The XML instance generation can be configured through certain options which are available by clicking on the Options button. The options dialog is as shown below:


Clicking on ‘Generate’ will result in the currently selected options being applied to the XSD->XML generation process. A new tab displaying the generated XML is shown next to the ‘Schema’ tab for every generation.

loading table of contents...