# AddCDATAEnvelope

| **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                                                                            |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(53\).png)

**Example**

In this example, we are passing the required parameter to the function transformation object using a *Variables* object.

Where,

*str* = Hello World

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(54\).png)

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.

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(54\).png)
