No real reason to use the cfxml tag if you are using cfsavecontent.  May as
well keep it as text and then XMLParse() it.  Or you could just use cfxml
straight off the bat.









"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Josh Nathanson
To: CF-Talk
Sent: Fri Apr 06 20:26:52 2007
Subject: Re: CFXML - What am I doing wrong

> 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
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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

Reply via email to