Update XML File with XPath Step
This step updates XML files using XPath to locate items to edit.
Required properties:
| Property Name | Description |
|---|---|
| Include Files |
Specify a new-line-separated list of of file/directory patterns to include. Pattern Matching Rules: * matches zero or more characters ? matches one character ** matches zero or more directories Examples:
|
Optional properties:
| Property Name | Description |
|---|---|
| Directory Offset | A subdirectory of the current working directory where the step is to execute |
| Exclude Files | Specify a new-line-separated list of file/directory patterns to exclude. Pattern matching rules are the same as those listed in Include Files. |
| Replace with Text |
Specify a new-line-separated list of XPath
Example:
|
| Remove | A new-line-separated list of XPath
expressions for elements to remove.
Example:
|
| Insert XML |
Specify a new-line-separated list of XPath
Example:
|
| Set Attributes |
Specify a new-line-separated list of XPath
Example:
|
| Fail if No Match Found | Select here for the step to fail if any of the XPath expressions do not return a match. |

