Skip to content

xmlInsertIntoDocument (XML Creation & Manipulation)

  • Purpose
  • This command is used to insert data into an XML document and returns 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. The document produced by evaluating one pair becomes the new value against which the next pair is evaluated.
  •  A path/value pair for an existing path in the document is ignored and does not overwrite the existing document value. A path/value pair for a nonexisting path in the document adds the value to the document if the path identifies one of these types of values: 
  • Syntax
  • xmlInsertIntoDocument(xml_string || {path,val}, VariableName )
  • Target
  • xml_string || {path,val} || {path, val}  
  • Value
  • VariableName
  • Return Value
  • Returns the result in XML. 

Example(s):

Click here to see the example

 
 

Feedback and Knowledge Base