Set Attribute

This action inserts or updates an attribute on the found tag with a specified name and value. If the found tag contain an attribute with the given name its value is updated with the specified value otherwise a new attribute is inserted with the value specified.

The step only works on XML variables. Note that this step neither validates the XML nor resolves entities.

Properties

The Set Attribute action can be configured using the following properties:

Attribute Name

The name of the attribute to set or update.

Value

The value of the attribute. This will be correctly encoded according the rules for encoding attribute values in the given type of document, e.g. XML.

See the Value Selector section for more information.