Skip to content

xmlReplaceNodesByPaths (XML Creation & Manipulation)

  • Purpose
  • This command is used to replace existing keys in a XML document and returns the result.
  • Returns NULL if any argument is EMPTY. An error occurs if the xml_string argument is not a valid XML document or any path argument is not a valid path expression or contains a * or ** wildcard. The path/key pairs are evaluated left to right. 
  • The document produced by evaluating one pair becomes the new value against which the next pair is evaluated.
  •  A path/key pair for an existing path in the document overwrites the existing document value with the new key. A path/keypair for a nonexisting path in the document is ignored and has no effect.
  • Syntax
  • xmlReplaceNodesByPaths(xml_string || {path, val} || { path, val}, VariableName )
  • Target
  • xml_string || {path, val} || { path, val}  
  • Value
  • VariableName
  • Return Value
  •  Returns the XML with the replaced node values

Example(s):

Click here to see the example

 
 

Feedback and Knowledge Base