Skip to content

xmlReplaceValuesByPaths (XML Creation & Manipulation)

  • Purpose
  • This command is used to replace existing values in an XML document and return the result.
  • Returns NULL if any argument is EMPTY. An error occurs if the XML_string argument is not valid or any path argument is not a valid path expression or contains a * or ** wildcard. The path/value pairs are evaluated left to right. 
  • A path/value pair for an existing path in the document overwrites the existing document value with the new value. A path/value pair for a non-existing path in the document is ignored and has no effect.
  • Syntax
  • xmlReplaceValuesByPaths(xml_string || {path, val} || { path, val}, VariableName )
  • Target
  • xml_string || {path, val} || { path, val}  
  • Value
  • VariableName
  • Return Value
The XML with the replaced values.

Example(s):

Click here to see the example

 
 

Feedback and Knowledge Base