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.
Access:
- Tools | XML Schema | Generate XML Schema
- Right-click on a package in the Project Browser and select the following context menu : Code Engineering | Generate XML Schema
Reference:
|
|
|
Encoding
|
Specify the required XML encoding
|
|
XSD Style
|
|
|
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.
|
|
Garden of Eden Style
|
Referenced Package Options
|
|
|
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 to generate 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.
|
|
|
Child Package Options
|
|
|
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-click 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.
|
|
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2011 Sparx Systems Pty Ltd.