XMLENCODE XMLENCODE XMLENCODE XMLENCODE Function ( xml [, ALL ALL ] ) xml The XML to encode. ALL Optional. Specifies including new line characters in the encoding so the text can be used in attribute definitions. Return: XMLENCODE returns a single value. The XMLENCODE function encodes special characters in an XML string (for example, < is converted to &lt) allowing you to use the CSV option on OUTPUT to produce more complex XML files than are possible by using the XML option. Example: d := XMLENCODE('<xml version 1><tag>data</tag>'); e := XMLDECODE(d); See Also: XMLDECODE