XML Change Attribute (Legacy Format)

Description

Changes the value of a specified attribute

Notes

This has been deprecated in favour of SetAttribute

Example

Base File


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

Substitution


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

Alternative version


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

Output


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