XML - Read Attribute Value from Node
This custom action lets you read the value of an attribute associated to an XML node.
| Property Name | Data Type | Description |
|---|---|---|
| AttributeName | string | A string specifying the name of the attribute to return. |
| IDXML | TXMLID | A unique string identifier associated to the opened XML resource you want to read data from. |
| PathToNode | XPath | XPath expression to the node that contains the attribute. |
| Variable | VarName | The name of the variable whose value will be set to what has been read. If the node attribute can’t be found or read, the variable is left untouched. |
Behavior when the node does not exist
Section titled “Behavior when the node does not exist”If the XPath expression does not match any node in the XML document (for example, if the parent element is self-closing like <Config /> instead of <Config key="value">), the read operation is silently skipped and the target variable is left untouched.
PathToNode explanation
Section titled “PathToNode explanation”Use of XPath is explained at http://msdn.microsoft.com/en-us/library/ms256086.aspx
Action Catalog Browse all available custom actions.