Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Global Attribute

A Global Attribute is an «XSDtopLevelAttribute» stereotyped Class. You can create it by dragging the 'Attribute' icon from the XML Schema Toolbox and dropping it directly onto a diagram.


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


Design > Element > Editors > Properties

Context Menu

Right-click on «XSDtopLevelAttribute» stereotyped element| Properties

Keyboard Shortcuts



Double-click on «XSDtopLevelAttribute» stereotyped Class, or

Drag Toolbox Icon icon from toolbox and drop directly onto the diagram (this creates a new «XSDtopLevelAttribute» stereotyped Class)

Toolbox Icon

Toolbox Icon

Define Properties



See also


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



  • 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 Browse. button and browse for an existing XSDsimpleType element as a classifier

Alternatively, select the 'Nested simpleType' checkbox.

Nested simpleType

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

Simple Type


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


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


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


(Optional) Click on the drop-down arrow and select:

  • qualified to use any Prefix supplied on the Schema Package to qualify this attribute, or
  • unqualified to show no qualifying prefix on the attribute name
Schema Package


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


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


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


Click on this button to display this Help topic.


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 attribute Class.

Properties Dialog


  • The field 'Nested simpleType' is available in the dialog only when creating a new global attribute (and not when editing the global attribute)
  • The fields 'Type' and 'Nested simpleType' are mutually exclusive; selecting one disables the other
  • A Global attribute:
         -  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
         -  Cannot be the target of a Generalization connector
         -  Can be the source of one Generalization connector to a Simple Type Class

Learn more