add Element

This topic describes the <add> XML element.

General syntax
<add target="attribute" name="regexp" [value="regexp"] />
DescriptionAdds a new attribute with given value to the component. The value is optional, if not defined it will be set to “null." The attribute is only added if it not exists. Else add will be silently omitted.
AttributesNameUseAnnotation
targetrequiredThe target defining the type of the operation to execute.

Valid values are:

ValueDescription
attributeDefines to add an attribute.

namerequiredDefines the new name of the target. The value can be either a string or any Regular Expression reference.
valueoptionalDefines the new value of the target. The value can be either a string or any Regular Expression reference. Defaults to null if omitted.
Examples
<!-- adds a new attribute named SYMBOL and set its value to 1234 --> 
<add target="attribute" name="SYMBOL" value="1234" />