PyCharm 2023.3 Help

Generate Instance Document from Schema Dialog

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

Item

Description

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 name

In this list, specify the local name of the global element to be used as the root of the generated document.

Enable restriction check

Select this checkbox to have PyCharm take restriction particles into consideration (if the specified Schema uses any).

Enable unique check

Select this checkbox to have PyCharm take uniqueness particles into consideration (if the specified Schema uses any).

Status

View the information in this read-only field to track and improve discrepancies when configuring the generation procedure.

Last modified: 11 February 2024