Question

XMLUpdater: Is it possible to "replace content" with the original content but with any underscores replaced by spaces?

  • 5 August 2016
  • 1 reply
  • 1 view

Badge +7


1 reply

Userlevel 2
Badge +17

Hi @tomf, yes you can do that with using an XQuery function. e.g.

Input:

<?xml version="1.0" encoding="UTF-8"?>
<data>
    <value>abc_kml_xyz</value>
</data>

XMLUpdater parameters

  • Update Type: Replace contents

  • XML Path: //value

  • Value Type: XML/XQuery

  • Value: fn:replace(//value, "_", " ")

Result:

<?xml version="1.0" encoding="UTF-8"?>
<data>
    <value>abc kml xyz</value>
</data>

Reply