Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Generate XSD

The Generate XML Schema feature forward-engineers a UML Class model to a W3C XML Schema (XSD) file. An XML schema corresponds to a UML package in Enterprise Architect, therefore XML schema generation is a package-level operation.

Before you begin this procedure, check that the location of the file into which the XML Schema is to be generated, has been defined in the Schema Package (see the Schema Package topic).

Access    Tools | XML Schema | Generate XML Schema, or
                  Project Browser package context menu | Code Engineering | Generate XML Schema

 

Reference

Field/Option/Button

Usage

See also

Encoding

Specify the required XML encoding.

 

 

XSD Style

Field

Usage

Generate global element for all global ComplexTypes ('Garden of Eden' style)

Generate Schema in the Garden of Eden style.

This option is checked, by default.

 

 

Generate Global Element

Referenced Package Options

Field

Usage

Generate XSD for Referenced packages

Generate Schema for packages that are referenced by any of the packages selected in the list box.

 

Prompt when missing Filename

Enable Enterprise Architect to prompt for a filename for a referenced package during Schema generation, if the path into which to generate the Schema file is missing.

 

Use relative path to reference XSDs    (if 'schemaLocation' tag is empty)

Use a relative-path in the XSD import (or XSD include) statement when referencing external packages, provided that the schemaLocation tag is empty on the referenced packages.

Ensure that the Schema File field is set on the XSD Schema Properties dialog (the element Properties dialog for a Schema element) for the referenced and referencing XSDschema stereotyped packages, for the relative-path to be correctly determined.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Schema Package

 

 

 

Child Package Options

Field

Usage

Generate XSD for Child Packages

Generate schema for child packages of the selected package.

Include all packages - lists all child packages under the parent package in the list box
Include <XSDschema> packages - lists only those packages that have the stereotype �XSDschema�
 

 

The list-box lists, for each package, the package name and the file path where the Schema file is to be generated.

Change the file path for a package by double-clicking on the entry in the list-box, if required.

Ensure that the checkbox is selected for each package required for generation.

 

 

Generate

Generate the Schema for each of the packages checked in the list-box.

 

 

Close

Close this dialog.

 

 

Help

Display this Help topic.

 

 

View Schema

View the generated Schema for a package highlighted in the list-box.

 

 

Progress

Lists the progress of Schema Generation.

 

 

Learning Center topics

(Alt+F1) | SOA and XML Engineering | XSD | Generate XML Schema