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 ; 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 . |
|
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
Learn more