PhpStorm 2017.2 Help

Generate Schema from Instance Document Dialog

Tools | XML Actions | Generate XSD Schema from XML File


In this dialog box, specify the options for generating an XSD (XML Schema Definition) Schema that describes the structure of the desired XML file.

The menu item and the dialog box are available when an XML document is opened in the active editor tab.

ItemDescription
Instance document pathIn this text box, specify the full path to the XML document to be used as the basis for Schema generation.
By default, the field shows the full path to the current file. To use another XML document, click the Browse button browseButton and select the desired file in the dialog that opens.
Result Schema file nameIn this text box, specify the name of the output file for the Schema to be generated. By default, the generated XSD Schema file will inherit the name of the instance document used and will have the .xsd extension. If you type another name for the Schema to be generated, make sure the extension is correct.

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

Design typeUse this drop-down to specify how to declare elements and complex types. The available options are:
  • Local elements / global complex types
  • Local elements / types
  • Global elements / local types
Detect simple content typesFrom this drop-down list, choose the type to render leaf text, which should be distinguished from the text used. The available options are:
  • String
  • Smart
Detect enumeration limitIn this text box, type the number of occurrences to cause the Schema enumeration appearance. To suppress Schema enumeration, specify 0.
Last modified: 28 November 2017

See Also