XML Add Child Content (Legacy Format)

Description

Will add the content as the child of the node in xPath

Notes

It’s recommended to use the ifNotExists attribute on the AddContent node to only add the child if it does not exist.

The ifNotExists attribute requires a xPath for checking existence.

Example

Base File


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

Substitution


<Change>
    <XPath>/root</XPath>
    <AddChildContent>
        <![CDATA[<node2>value2</node2>]]>
    </AddChildContent>
</Change>

Output


<root>
    <node>value</node>
    <node2>value2</node2>
</root>