|
Previous Top Next |
Prototype: | (STRING pXML),STRING |
pXML | The XML string to encode |
Returns | Returns the encoded XML string |
This method takes an XML string and encodes characters > 127 as &#xxx; where xxx is the appropriate character number. It also encodes ampersand (&), less than "<", greater than ">", single quote ' and double quote " It can also be used to encode HTML.
Example:
ITS ITStringClass
XMLStr CSTRING(1025)
CODE
XMLStr = 'Arnór'
XMLStr = ITS.EncodeXML(XMLStr)
!! XMLStr now contains Arnór
See also: