Build.XML - xmlpeek
Description
Extracts text from an XML file and uses it to set a property. The text to extract is specified using a simple path value. An optional attribute name can be set, and the peek command will get the text from the attribute instead.
Parameters
Table 12. Parameters
Attribute | Type | Description | Required |
---|---|---|---|
file | string | The name of the XML file to peek from. | true |
path | string | The path of the node to extract from. Must be the full path and end in a forward slash. | true |
property | string | The name of the property to set. | true |
global | bool | If true, the property will be global, otherwise it will be local to the task. Default is false. | false |
attribute | string | An optional attribute name where the data will be read from. | false |
if | bool | If true, the task will be executed, otherwise it will be skipped. The default is true. | False |
unless | bool | The opposite of if. If false, the task will be executed, otherwise it will be skipped. The default is false. | False |