Skip to main content
Question

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

  • August 5, 2016
  • 1 reply
  • 14 views
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • August 5, 2016

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>