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

Local Element

A Local element is an «XSDelement» stereotyped UML attribute that acts as a local XSD element. You can create it by dragging the Element icon from the XML Schema Toolbox and dropping it onto an «XSDcomplexType» or «XSDgroup» stereotyped Class.

Toolbox Icon

Toolbox Icon

Access

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

Ribbon

With a specific «XSDelement» stereotyped attribute selected in a diagram:

Design > Element > Features > Attributes

Context Menu

With a specific «XSDelement» stereotyped attribute selected in a diagram :

Right-click on attribute | View Properties

Keyboard Shortcuts

With a specific «XSDelement» stereotyped attribute selected in a diagram :

F9

Other

Double-click on «XSDelement» stereotyped attribute, or

Drag Toolbox Icon icon onto «XSDcomplexType» or «XSDgroup» stereotyped Class, (this creates a new «XSDelement» within the Class)

Define Properties

Field/Button

Action

See also

Name

If you do not want to use the default name of the local 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 Browse. button and browse for an existing XSDcomplexType or XSDsimpleType element as a classifier

Reference

(Optional) Specify whether to use the ref attribute (instead of the type attribute) to refer to the XSDcomplexType or XSDsimpleType element you selected in the 'Type' field, in the generated XSD.

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.

MinOccurs

(Optional) Type the minimum number of times this element must occur in the Class.

Type '0' to indicate that the element is optional.

The default value is '1'.

MaxOccurs

(Optional) Type the maximum number of times this element can occur in the Class.

Type unbounded to indicate that there is no limit to the number of times the element can occur.

The default value is 1.

Form

(Optional) Click on the drop-down arrow and select whether or not to qualify the element:

  • qualified - Use the Prefix defined in the Schema Package to qualify this element
  • unqualified - Do not qualify this element
Schema Package

Annotation

(Optional) Type in any notes you need for this local 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 attribute properties for the local element.

Create and Manage Attributes

Notes

  • Only «Complex Type», «Group» and «Model Group» stereotyped elements can have this UML Attribute

Learn more