> I'm really new to xml--- > > Where exactly are you doing this "cleaning"?
Sorry, I should have been more clear -- What I do is wrap the outputted xml in cfsavecontent, before wrapping the cfxml tag around it. This results in a string which in my example is "oldxml". For example: <cfsavecontent variable="oldxml"> <cfoutput query="myquery"> <item>#item#</item> </cfoutput> </cfsavecontent> Then you clean the string "oldxml" and then wrap it with the cfxml tag. -- Josh ----- Original Message ----- From: "Joel Watson" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Friday, April 06, 2007 12:06 PM Subject: Re: CFXML - What am I doing wrong > > >>> An invalid XML character (Unicode: 0x1c) was found in the CDATA section. >> >>Here is a regex I use to "clean" my xml of any funky characters: >><cfset newxml = rereplace(oldxml, "[\x00-\x1f]", " ", "All")> >> >>Then you should probably still CDATA newxml to escape the regular bad xml >>characters. >> >>-- Josh > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274724 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4