You may have other issues there. If an ampersand is properly encoded as
&, your replace() statement will make that &

Shouldn't the source of that XML be escaping the ampersand?


-----Original Message-----
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 11:33 AM
To: CF-Talk
Subject: Re: WebService Issue w/Special Characters being sent to
XMLParse

All,

Thanks for your posts, issue resolved using:

<CFFILE ACTION="READ" FILE="c:\stock.xml" VARIABLE="GotTheStockInfo">

<cfset newXML = Replace(GotTheStockInfo, chr(38), "&amp;", "ALL")>
<cfdump var="#newXML#" label="MyStockInfo">

<cfset parsedStockInfo = XMLParse(newXML)> <cfdump
var="#parsedStockInfo#" label="MyStockInfo">

Have a great weekend!

-Jim



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275167
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to