Prev Next

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

To display the XSD schema 'Properties' dialog for the selected «XSDschema» stereotyped Package, use one of the methods outlined here:

Ribbon

Design > Package > Edit > Properties

Context Menu

Right-click on «XSDschema» stereotyped Package | Properties

Other

In Project Browser, double-click on existing «XSDschema» stereotyped Package, or

Drag icon from toolbox onto diagram (this creates a new «XSDschema» stereotyped Package)

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.

  • 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)