<xmlpoke>Replaces text from a given XPath Query.
| Attribute | Type | Description | Required |
|---|
| file | string | The filename of the file that contains the XML document that is going to be poked. | True |
| value | string | The value that replaces the contents of the selected nodes. | True |
| xpath | string | The XPath expression used to select which nodes are to be modified. | True |
| failonerror | bool | Determines whether task failure stops the build or is just reported. The default is true. | False |
| if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. | False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
Example
<xmlpoke
file="App.config"
xpath="/configuration/appSettings/add[@key = 'server']/@value"
value="productionhost.somecompany.com" />