Skip to main content

REPLACE_XML

Replace XML content at the given location. Content can be sourced from a flow variable (in) or the default text input.

At a glance

  • Category Editor
  • Aliases CTX_REPLACE_XML
  • Version: 1.0.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
inOptional text or variable name to read the XML content from the flowContext.NonefalsetrueNoneNone
atWhere to replace the XML. Options: XPATH, CURSOR_PARAGRAPH, CURSOR.NonefalsefalseNoneNone
xpathXPath expression used when at is XPATH.NoneConditionalfalseNoneRequired when at = XPATH
forceWriteWrite content even if the document is considered read-only.NonefalsefalseNoneNone

Examples

Replace XML at XPath

- step: SET
text: "<section>Updated</section>"

- step: REPLACE_XML
at: XPATH
xpath: "/doc/story/grouphead/headline/p"

See Also

General Resources: