Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Schema Package
An «XSDschema» stereotyped Package acts as a container for the XSD constructs, from which XML Schema can be generated. All Classes in the Package are defined within one schema; the Schema element provides the default schema-wide settings. You can create an «XSDschema» Package by dragging the Schema icon from the XML Schema Toolbox and dropping it directly onto a diagram.
Toolbox Icon
Access Drag icon onto diagram, or
Project Browser | Double-click on «XSDschema» stereotyped Package, or
Diagram | Right-click on «XSDschema» stereotyped Package | Properties
Define Properties
Field/Button |
Action |
See also |
||||||||||||
Schema Name |
If you do not want to use the default name of the schema Package, overtype it with another name.
|
|
||||||||||||
Target Namespace |
(Optional) Type in the target namespace for this Schema Package.
|
|
||||||||||||
Prefix |
(Optional) Type in the abbreviated text to represent the Target Namespace.
|
|
||||||||||||
Default Namespace |
(Optional) Type in the default namespace for all non-prefixed XSDelements and XSDattributes.
|
|
||||||||||||
Schema File |
Type in or browse for (click on ( ... )) the file path where the XML Schema file for this Package is to be generated.
|
|
||||||||||||
XMLNS |
Identify the additional namespace or namespace-prefix pairs used in this Schema Package. To add a namespace or namespace-prefix pair, click on the New button; to edit an existing entry, double-click on it. In either case, the Namespace Details dialog displays.
To remove an entry from the list, click on it and click on the Delete button.
|
|
||||||||||||
OK |
Click on this button to save the schema data entered and close the XSD schema Properties dialog.
|
|
||||||||||||
Cancel |
Click on this button to discard the schema data entered and close the XSD schema Properties dialog.
|
|
||||||||||||
Help |
Click on this button to display this Help topic.
|
|
||||||||||||
UML |
This button is displayed when you are editing existing Schema Package information. Click on the button to open the UML element Properties dialog for the Schema element.
|
|
Notes
· | The default schema-wide settings are defined by Tagged Values, which you can review on the Tagged Values page of the schema element Properties dialog, or the Tagged Values window for the element; you can edit the schema-wide settings if you need to, or provide element-specific overrides in the properties and Tagged Values of the individual XSD construct elements |
Learn more
· | Tagged Values (as you click on each Tagged Value, check the text field at the bottom of the Tagged Values window) |