- In the active editor tab, open the desired Schema (.xsd) file or an XML document which contains the desired Schema. Then choose on the main menu.
- In the Generate Java from Xml Schema using JAXB dialog box that opens
configure the generation procedure:
- In the Schema/DTD/WSDL Path drop-down list,
specify the file to be used as the basis for code generation.
By default, the field shows the full path to the current file.
Accept this suggestion or click the Browse button
and select the desired file in the
Select XML Schema File for JAXB Generation that opens.
- From the Output Path drop-down list, select the module source directory to place the generated Java class in.
- In the Package Prefix drop-down list, specify the package to include the generated stubs in.
- Using the check boxes, configure additional options, such as generating annotation, setting the read-only status, downloading and installing additional libraries.
- In the Schema/DTD/WSDL Path drop-down list,
specify the file to be used as the basis for code generation.
By default, the field shows the full path to the current file.
Accept this suggestion or click the Browse button
- In the active editor tab, open the desired Schema (.xsd) file or an XML document which contains the desired Schema. Then choose on the main menu.
- In the Generate Java Code From XML Schema using XmlBeans dialog box that opens
configure the generation procedure:
- In the Schema Path drop-down list, specify the file to be used as the basis for code generation.
By default, the field shows the full path to the current file.
Accept this suggestion or click the Browse button
and select the desired file in the
Select XML Schema /WSDL File for Generation dialog box that opens.
- In the Output Path drop-down list,
specify the name of the .jar file
to place the generated and compiled Java code in. By default, IntelliJ IDEA suggests to create a new file
types.jar. To overwrite an existing file,
click the Browse button
and choose the desired file in the
Select XML Schema / Wsdl File for generation dialog box that opens. - To have missing libraries downloaded and installed automatically, select the Add necessary libraries in order for generated code compile and work check box.
- In the Schema Path drop-down list, specify the file to be used as the basis for code generation.
By default, the field shows the full path to the current file.
Accept this suggestion or click the Browse button

, which involves
mapping the elements of the XML Schema to members of a Java class.
With IntelliJ IDEA, this transformation can be done using one of the following data binders: