How to replace the text content of an element
Posted: Wed Jul 17, 2019 12:50 pm
I want to replace the text content of an XML element (location defined via XPath) with an oXygen author mode action, but I do not know which operation to choose for this.
The operation InsertOrReplaceText only allows for inserting or replacing text at the caret position.
The operation InsertOrReplaceFragmentOperation with the Xpath element/*[1] and the insertPosition replace does not replace the content either, but does add the text instead.
The operation InsertOrReplaceText only allows for inserting or replacing text at the caret position.
The operation InsertOrReplaceFragmentOperation with the Xpath element/*[1] and the insertPosition replace does not replace the content either, but does add the text instead.