Choose where you’d like to start

XML Decode

Description

The xmlDecode function is used to render all the XML entities in the input string to XML. To perform reverse operation, i.e., encode a XML text to XML entities, use xmlEncode function.

Note:
  • The size of the supplied input text and the returned output text can individually be up to 300KB.
  • This function supports all XML tags until the latest version.

Syntax

<response> = <data>.xmlDecode();
(or)
<response> = xmlDecode(<data>);

where:

ParamsData typeDescription

<response>

TEXT

Specifies the response that represents the decoded XML data

<data>

TEXT

Specifies the input XML text whose special XML characters are encoded that will be decoded

Example 1: Decode a text with XML entities to XML

The following script decodes the input text such that all the XML entities will be transformed into respective XML characters.

response = xmlDecode("Your order is ready&lt;br /&gt;Thank you.");

where:

response
The TEXT response that represents the base 64 encoded data. This example returns - Your order is ready<br />Thank you.
"Your order is ready&lt;br /&gt;Thank you."
The TEXT that represents the input with XML entities that need to be decoded

Related Links

Get Started Now

Execute