# Decoding XML

Availability-note[Deprecated](https://help.talend.com/r/en-US/Cloud/labels-on-talend-help-center/availability-deprecated)

This content is deprecated.

Available in...

* Data Fabric
* MDM Platform
* Qlik Cloud Enterprise Edition
* Qlik Talend Cloud Enterprise Edition
* Qlik Talend Cloud Premium Edition

## About this task

In this step, you want to use a decoding mechanism to remove the escape function from the XML document before sending it to the Job.

## Procedure

1. Click the second step to display the Step Specifications area where you can define the step parameters.

   ![](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/Action_Create3.png)

   Information noteNote: You can disable the selected step in the open Process editor at any time if you select the Disable check box in the Step Specification area.
2. From the Plugin name list, select codec.

   A description for the selected plugin is displayed in the box above the Plugin name field.

   Information noteNote: The ![](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/Help_Icon.png) button displays a dialog box that describes the plugin and details its parameters.
3. Map the item\_xml variable defined in the previous step to this step law\_text input parameter and click the ![](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/Link_Icon.png) button to add them to the table.
4. Map this step output parameter to a new variable called decode\_xml, for example then click the ![](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/Link_Icon.png) button to add them to the table.

   Information noteNote: For each step, you can select one of the by-default variables or one of the variables defined for the preceding plugin the Process you define.
5. In the Parameters area, complete the definition as follows:
   ```
   <parameters>
   	<method>DECODE</method>
   	<algorithm>XMLESCAPE</algorithm>
   </parameters>
   ```

   Information noteWarning: The text you enter in the text editor is indented by default upon saving. This may cause problems in certain cases such as the HTML formatting when creating a Smart View process. If required, clear the Auto-indent check box to disable the text indentation upon saving the process.

## Results

So far, the first step in the Process produces the item\_xml variable with the complete XML record. This step sends the item\_xml to the codec plugin law\_text input parameter. The codec plugin unescapes the XML and posts the result in decode\_xml through its output variable. So now there is a decode\_xml document ready to be sent to the last step: call the Job.