WebStorm 2021.1 Help

Generate Instance Document from Schema Dialog

Tools | XML Actions | Generate XML Document from XSD Schema

In this dialog, specify the options for generating an XML file based on the XSD (XML Schema Definition) Schema that describes its structure.

The menu item and the dialog are available when the file opened in the active editor tab contains an XML Schema.

ItemDescription
Schema path

In this field, specify the location of the .xsd Schema file to be used as the basis for XML document generation.

By default, the field shows the full path to the current file. To use another Schema, click Browse the Browse button and select the desired file in the dialog that opens.

Instance document name

In this field, specify the name of the output XML file to be generated. By default, the generated XML file will inherit the name of the source Schema and will have the xml extension. If you type another name for the document to be generated, make sure the extension is correct.

The default location for the generated document is the directory where the source .xsd Schema file resides. To specify another location, click Browse the Browse button and select the desired path in the dialog that opens.

Element nameIn this list, specify the local name of the global element to be used as the root of the generated document.
Enable restriction checkSelect this checkbox to have WebStorm take restriction particles into consideration (if the specified Schema uses any).
Enable unique checkSelect this checkbox to have WebStorm take uniqueness particles into consideration (if the specified Schema uses any).
StatusView the information in this read-only field to track and improve discrepancies when configuring the generation procedure.
Last modified: 08 March 2021