Converts plain text to XML.
toXML(string)
Specifies the string to be converted (original string is not modified).
Returns a string that has special characters converted to their XML encoded strings.
The following characters are converted as indicated in the following table:
Character |
Result |
---|---|
< |
< |
> |
> |
& |
& |
' (single quote) |
' |
“ (double quote) |
" |
(Escape) |
 |