Prev Next

Global Element

An «XSDtopLevelElement» stereotyped Class acts as a XSD global element. You can create it by dragging the Element icon from the XML Schema Toolbox and dropping it directly onto a diagram.

Toolbox Icon

Access

To display the 'XSD element Properties' dialog for the selected «XSDtopLevelElement» stereotyped Class, use one of the methods outlined here.

Ribbon

Design > Element > Properties > Properties

Context Menu

Right-click on «XSDtopLevelElement» stereotyped Class | Properties

Keyboard Shortcuts

Alt+Enter

Other

In Project Browser, double-click on «XSDtopLevelElement» stereotyped Class, or

Drag icon from toolbox onto diagram (this creates a new «XSDtopLevelElement» stereotyped Class)

Define Properties

Field/Button

Action

See also

Name

If you do not want to use the default name of the global element, overtype it with another name.

Type

Either:

  • Type the name of a data type, or
  • Click on the drop-down arrow and select an XSD built-in dataType from the list, or
  • Click on the button and browse for an existing XSD classifier element, or
  • Select one of these two checkboxes

Nested complexType

Select this checkbox to create an XSDcomplexType as a child of this global element.

Complex Type

Nested simpleType

Select this checkbox to create an XSDsimpleType as a child of this global element.

Simple Type

Value

(Optional) If you have entered an XSD built-in data type in the 'Type' field, type in a value.

Default

Select this radio button to set the Value as a default value.

Fixed

Select this radio button to set the Value as a fixed value.

Annotation

(Optional) Type in any notes you need for this element.

OK

Click on this button to save the element data entered and close the XSD element 'Properties' dialog.

Cancel

Click on this button to discard the element data entered and close the XSD element 'Properties' dialog.

Help

Click on this button to display this Help topic.

UML

This button is displayed when you are editing existing XSD element information.

Click on the button to open the UML element 'Properties' dialog for the global element.

Properties

Notes

  • The fields 'Type', 'Nested complexType' and 'Nested simpleType' are mutually exclusive; selecting one disables the others
  • The fields 'Nested complexType' and 'Nested simpleType' are available in the dialog only when creating a new global element (and not when editing the global element)
  • A Global element:
         -  Cannot contain any UML attributes
         -  Cannot be the source of an Association connector
         -  Can be the target of an Association connector from a Complex Type Class or Group Class element
         -  Cannot be the target of a Generalization connector
         -  Can be the source of one Generalization connector to a Complex Type Class or Simple Type Class

Learn more