XML - Write node

This custom action lets you set the text content of an existing XML node, or create a new node.

Warning: this custom action requires an XML ID that is first created with “Begin editing file or string”.

This custom action has two different behaviors, depending on whether Name is set or not.

  • If you leave Name blank, the node whose XPath is defined by PathToNode will have its text set to the contents specified with “Value”. The node must exist.

  • If you set Name, a new node with this name is created. The node parent is defined by PathToNode. The node text is also set to the contents specified with “Value”.

Property NameData TypeDescription
IDXMLTXMLIDA unique string identifier associated to the opened XML resource you want to write data to.
NameStringName of the node. Optional: see above
PathToNodeXPathXPath expression to the parent node (if you create a new XML node) or to the existing node (if you want to change its text content).
ValueStringThis is the text you want to assign to the node. You can use variables such as %DESTPATH%.

PathToNode explanation

Use of XPath is explained at http://msdn.microsoft.com/en-us/library/ms256086.aspx

All available actions

© G.D.G. Software 2018. All rights reserved.