PhpStorm 2017.2 Help

Generate Instance Document from Schema Dialog

Tools | XML Actions | Generate XML Document from XSD Schema


In this dialog box, 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 box are available when the file opened in the active editor tab contains an XML Schema.

ItemDescription
Schema pathIn 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 the Browse button browseButton and select the desired file in the dialog that opens.
Instance document nameIn this text box, 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 the Browse button browseButton and select the desired path in the dialog that opens.

Element nameIn this drop-down list, specify the local name of the global element to be used as the root of the generated document.
Enable restriction checkSelect this check box to have PhpStorm take restriction particles into consideration (if the specified Schema uses any).
Enable unique checkSelect this check box to have PhpStorm 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: 28 November 2017

See Also