Hi Steve,

You're missing the semi-colon on the end of your entities, e.g., &amp should
be &

Have you tried using ENCODING=HTML (v5.5)? Or put everything inside a CDATA
section?

Or request$encodeResults (or request$encodeResultsHTML [v5.5])?

Hope this helps....

Scott Cadillac
---------
Business Extranet Freedom
IExtranet ~ http://IExtranet.com 
Online Demo ~ http://www.northwind.org/#demo 
---------
Weblog ~ http://xmlx.ca 
For Hire ~ http://xmlx.ca/forhire
---------
403-254-5002 ~ [EMAIL PROTECTED]
---------
P.O. Box 69006
RPO Bridlewood SW
Calgary, Alberta
Canada T2Y 4T9
 

> -----Original Message-----
> From: Fogelson, Steve [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 07, 2005 3:30 PM
> To: Witango User Group (E-mail)
> Subject: Witango-Talk: Search and Replace
> 
> I am creating an XML file and I need to search and replace 
> many variables
> that are written into the XML file with the following:
> 
> & to &amp
> < to &lt
> > to &gt
> " to &quot
> ' to &apos
> 
> I could use the following, but I need to perform it on a 
> number of variables
> <@REPLACE STR="request$variable" FINDSTR="&" REPLACESTR="&amp">
> <@REPLACE STR="request$variable" FINDSTR="<" REPLACESTR="&lt">
> <@REPLACE STR="request$variable" FINDSTR=">" REPLACESTR="&gt">
> <@REPLACE STR="request$variable" FINDSTR=""" REPLACESTR="&quot">
> <@REPLACE STR="request$variable" FINDSTR="'" REPLACESTR="&apos">
> 
> Is there a better way to do this?
> 
> Thanks
> 
> Steve Fogelson
> Internet Commerce Solutions
> ______________________________________________________________
> __________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> 


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to