XMLDECODE

XMLDECODE( unicode )

unicodeThe unicode text to decode.
Return:XMLDECODE returns a single value.

The XMLDECODE function decodes special characters into an XML string (for example, &lt is converted to <) allowing you to use the CSV option on OUTPUT to produce more complex XML files than are possible by using the XML option.

Example:

encoded := XMLENCODE('<xml version 1><tag>data</tag>');
decoded := XMLDECODE(encoded);

OUTPUT(encoded); //results in '&lt;xml version 1&gt;&lt;tag&gt;data&lt;/tag&gt;'
OUTPUT(decoded); // results in '<xml version 1><tag>data</tag>'

See Also: XMLENCODE