<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>encoding special characters in XML</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=491320103-11062007><FONT face=Arial 
color=#0000ff size=2>I use the StrHtmlEncode and StrHtmlDecode functions in the 
IdStrings unit in the Indy library.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491320103-11062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=491320103-11062007><FONT face=Arial 
color=#0000ff size=2>I'm sure there are other similar functions 
around.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491320103-11062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=491320103-11062007><FONT face=Arial 
color=#0000ff size=2>HTH,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491320103-11062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=491320103-11062007><FONT face=Arial 
color=#0000ff size=2>C.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT size=2><FONT 
face=Tahoma><B>From:</B> delphi-bounces@delphi.org.nz 
[mailto:delphi-bounces@delphi.org.nz] <B>On Behalf Of </B>Steven Knight<BR><SPAN 
class=491320103-11062007><FONT face=Arial 
color=#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT size=2><FONT 
face=Arial>I am wanting to write out text into an xml file. The text may contain 
special characters like &amp; / &lt; etc and I need to protect 
them.</FONT></FONT></DIV>
<P><FONT face=Arial size=2>Can anyone tell me the name of a function that will 
do this easily.</FONT> </P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN></P></BODY></HTML>