this seems to work:

<cfhttp url="
http://merchandising.expediaaffiliate.com/campaign/?campaignId=5409&cid=311009";
method="GET">


<cfset xml = xmlParse(cfhttp.filecontent) />

<cfset data = xmlsearch(xml, '//shortDescription')/>

<cfset foo = replacelist(data[1].xmltext, '<![CDATA[,]]>,&gt;,&lt;', ' ,
,>,<')/>


<cfoutput>
#foo#
</cfoutput>


Let us know where you can send the check! ;)

On Fri, Jan 28, 2011 at 1:56 PM, Michael Brown <singleconce...@gmail.com>wrote:

> Thanks
>
> I want number 3 to be the output.  I'm now seeing number 2.
>
> Michael
>
> On Fri, Jan 28, 2011 at 12:37 PM, Charlie Arehart <char...@carehart.org>wrote:
>
>> That wasn’t clear to me. Thanks.
>>
>> So let’s make it simple for everyone to follow along and perhaps resolve
>> things. It would be as if you (Michael) did this (always helpful to offer a
>> simple reproducible case):
>>
>> <cfset x = “<![CDATA[&lt;p&gt;&lt;strong&gt;Location.&lt;/strong&gt;
>> &lt;br /&gt;This condo property is located in Celebration. Old Town is an
>> area attraction. Another nearby attraction is Wide World of Sports.
>> &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Features. &lt;/strong&gt;]]>”>
>>
>> <cfoutput>
>>
>> #x#
>>
>> </cfoutput>
>>
>> What would be the output you would want to appear?
>>
>> 1) Is it:
>>
>> <![CDATA[<p><strong>Location.</strong>; <br />This condo property is
>> located in Celebration. Old Town is an area attraction. Another nearby
>> attraction is Wide World of Sports. </p><p><strong>Features.</strong>]]>
>>
>> ---
>> 2) Or do you want:
>>
>> <p><strong>Location.</strong>; <br />This condo property is located in
>> Celebration. Old Town is an area attraction. Another nearby attraction is
>> Wide World of Sports. </p><p><strong>Features.</strong>
>>
>> -----
>> 3) Or do you want:
>>
>> *Location.*
>> This condo property is located in Celebration. Old Town is an area
>> attraction. Another nearby attraction is Wide World of Sports.
>>
>> *Features.*
>>
>> ---
>>
>>
>> /charlie
>>
>>
>>
>> *From:* ad...@acfug.org [mailto:ad...@acfug.org] *On Behalf Of *Steve
>> Ross
>> *Sent:* Friday, January 28, 2011 10:52 AM
>> *To:* discussion@acfug.org
>> *Subject:* Re: [ACFUG Discuss] XML data showing in dump but not in
>> cfoutput
>>
>>
>>
>> charlie the problem is that the CDATA is already in &gt; etc he needs to
>> convert it back and unfortunately there is no "unhtmleditformat" in CF...
>>
>>
>>
>> -------------------------------------------------------------
>> To unsubscribe from this list, manage your profile @
>> http://www.acfug.org?fa=login.edituserform
>>
>> For more info, see http://www.acfug.org/mailinglists
>> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
>> List hosted by FusionLink <http://www.fusionlink.com>
>> -------------------------------------------------------------
>
>
>
>
> --
> Michael Brown
> 770-605-5240
>
> Marketing Solutions with vision!
> http://www.singleconcepts.com
>
>
>


-- 
Steve Ross
web application & interface developer
http://blog.stevensross.com
[mobile] (912) 344-8113
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]

Reply via email to