© Copyright 2023, Astera Software
Name
AddCDATAEnvelope
Syntax
AddCDATAEnvelope (String str)
Purpose
To return the given string surrounded by CDATA envelope.
Description
Surrounds the specified string with CDATA XML envelope. Use this function to surround a string when mapping as CDATA to XML destination.
Return Type
String
Parameters
Str [System.String] – String to surround with CDATA envelope
Example
In this example, we are passing the required parameter to the function transformation object using a Variables object.
Where,
str = Hello World
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned the specified string surrounded by CDATA envelope.