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

Schema_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.

 

Field

Action

Prefix

Type in the abbreviated text to represent the Namespace.

 

Namespace

Type in the name of the Namespace.

 

OK

Click on this button to save the new information and close the Namespace Details dialog.

 

Cancel

Click on this button to discard the new information and close the Namespace Details dialog.

 

Help

Click on this button to display this Help topic.

 

 

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.

 

 

Properties

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)