Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Attributes Supported in XML Profile
The table below lists the three main types of object you can define for the main XML element nodes in an XML Profile document. These are the:
- Stereotype, which creates a visible entry in the UML Profile folder in the Resources window
- Tagged Values, which are additional properties that an element or connector support
- Constraints that apply to the model element.
Type |
Attribute |
Optional |
Notes |
stereotype |
cx |
Yes |
Deprecated. Initial x coordinate of element. |
|
cy |
Yes |
Deprecated. Initial y coordinate of element. |
_image |
Yes |
Shape script definition. |
|
|
_imageFile |
Yes |
Deprecated. Location of image file (.wmf). |
|
metafile |
Yes |
Filename of associated metafile; this MUST be in the same directory as the Profile XML. |
|
name |
No |
Stereotype name. |
|
notes |
Yes |
Notes visible in browser. |
|
_sizeX |
Yes |
Initial width of the element, in pixels at 100% zoom. |
|
_sizeY |
Yes |
Initial height of the element, in pixels at 100% zoom. |
tag |
default |
Yes |
A default value; for example, 'true'. |
|
description |
Yes |
A description of the tag; appears in the tag tab and for elements in the Properties window setting notes. |
|
name |
No |
Tag name. |
|
values |
Yes |
List of possible values; values separated by ' | ' (<space>|<space>); for example, 'true | false'. For elements, populates the drop combo in the tag section of the docked Properties window. |
constraint |
name |
Yes |
Constraint name. |
|
notes |
No |
Additional explanatory notes. |
|
type |
Yes |
Constraint type (for example, 'pre' for precondition, 'post' for postcondition). |