Skip to content

XML - Read Value from Node

This custom action lets you read the text content of an XML node.

Property NameData TypeDescription
IDXMLTXMLIDA unique string identifier associated to the opened XML resource you want to read data from.
PathToNodeXPathXPath expression to the node.
VariableVarNameThe name of the variable whose value will be set to what has been read. If the node can’t be found or read, the variable is left untouched.

If the XPath expression does not match any node in the XML document (for example, if the parent element is self-closing like <System /> instead of <System><Backuppath>value</Backuppath></System>), the read operation is silently skipped and the target variable is left untouched.

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