Skip to content

Patch XML Files

Sandor edited this page Aug 5, 2016 · 3 revisions

Icon

With this task, you can patch XML files using XPath and JSON patch syntaxes.

Add the task to your Build or Release Definition

Add-Tasks

You will find the task in the "Utility" category.

Configuration

Configure-XmlPatch

General

  • Syntax type - The syntax used for the patch content. See documentation for more information.
  • Patch working directory - Working directory. Example: $(Build.SourcesDirectory)
  • Target files - Patch target files. Example: config*.xml
  • Xml Namespaces (As a Json map) - Xml namespaces. If standard Syntax it must be a json map. Otherwise it must be tag => namespaceUri
  • Patch Content - Patch content.
  • Output patched file in logs - Output patched file in logs