XML Add Attribute (Legacy Format)

Description

Will add an attribute to an already existing node in the XML

Notes

This has been deprecated in favour of SetAttribute

Example

Base File


<root>
    <node>value</node>
</root>

Substitution


<Change>
    <XPath>/root/node</XPath>
    <AddAttribute attributeName="attrVal">true</AddAttribute>
</Change>

Alternative version


<Change>
    <XPath>/root/node</XPath>
    <AddAttribute attributeName="attrVal" value="true" />
</Change>

Output


<root>
    <node attrVal="true">value</node>
</root>