I don't know if there is one, but, for text nodes in XML documents, you could do:
value = change( value, '&', '&' ) value = change( value, '<', '<' ) value = change( value, '>', '>' ) value = change( value, '#xD', '
' ) according to RFC 3076: "Text Nodes - the string value, except all ampersands are replaced by &, all open angle brackets (<) are replaced by <, all closing angle brackets (>) are replaced by >, and all #xD characters are replaced by 
." Other node types, notably attribute nodes, have other requirements that differ from the above. Best regards, Henry Henry P. Unger Hitech Systems, Inc. http://www.hitech.com -----Original Message----- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Ben Souther Sent: Wednesday, February 25, 2009 12:13 PM To: u2-users@listserver.u2ug.org Subject: [U2] XML Escape function Years ago, I thought I saw an XML escape function in Unibasic but I can't seem to find it now. I thought it was mentioned in the Unidata Extensions PDF but I'm not able to find it. Does anyone know if such a function exists? Thanks, -Ben ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/