www.icetips.com  Icetips Utilities Documentation 1/25/2016    

String Class:  EncodeXML

Previous  Top  Next  


Prototype: (STRING pXML),STRING

 

pXMLThe XML string to encode

 

ReturnsReturns 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&#243;r

 

 

See also:

FormatXML

 



Direct link to this page: http://www.icetips.com/manuals/utilities/encodexml_stringclass.htm