toXML

Converts plain text to XML.

Syntax

toXML(string)

Parameters

string

Specifies the string to be converted (original string is not modified).

Returns

Returns a string that has special characters converted to their XML encoded strings.

Remarks

The following characters are converted as indicated in the following table:

Character

Result

<

&lt;

>

&gt;

&

&amp;

' (single quote)

&#39;

“ (double quote)

&#34;

(Escape)

&#27;