RE: ColdFusion and RSS

2009-06-26 Thread Andy Matthews
My blog software is all custom, barring my RSS feed. I'm using Ray Camden's RSS.cfc. The thing that catches me most of the time are ampersands . andy -Original Message- From: bill turner [mailto:bill.tur...@selectcomfort.com] Sent: Friday, June 26, 2009 10:32 AM To: cf-talk Subject:

Re: ColdFusion and RSS

2009-06-26 Thread Dominic Watson
You may like to try: description![CDATA[#post#]]/description However, the xmlformat will definately be cleaning up any invalid xml characters; are you using it in the title, etc? Perhaps it could be an encoding issue. Dominic 2009/6/26 bill turner bill.tur...@selectcomfort.com:

Re: ColdFusion and RSS

2009-06-26 Thread Ryan Stille
XMLFormat() does NOT clean up all invalid XML characters, it still leaves in a lot of bar chars that will mess up XML readers. I think there is a function on cflib that does a better job, I wrote one too a while back: http://www.stillnetstudios.com/2008/09/14/cleaning-up-non-ascii-characters/

RE: ColdFusion and RSS

2009-06-26 Thread Robert Harrison
This string should clean up your data. It work fine for the XML generators I've written, and they're in use on several sites. #ReplaceList(XmlFormat(YOURFIELDNAME),amp;trade;,amp;reg;,amp;copy;,# #x2122;,##x00AE;,##xA9;)# Robert B. Harrison Director of Interactive Services Austin Williams 125

Re: ColdFusion and RSS

2009-06-26 Thread bill turner
if I wrap in CDATA, won't I lose the html markup? You may like to try: description![CDATA[#post#]]/description However, the xmlformat will definately be cleaning up any invalid xml characters; are you using it in the title, etc? Perhaps it could be an encoding issue. Dominic

Re: ColdFusion and RSS

2009-06-26 Thread bill turner
This seems logical, but not sure it will solve my problem. The problems are often things like single quotes that are some sort of special encoding that is not recognized. I was hoping to find something that cleans up all such data and/or be able to dynamically call an rss validator to test my

Re: ColdFusion and RSS

2009-06-26 Thread bill turner
Thanks, Ryan. I will look into this. XMLFormat() does NOT clean up all invalid XML characters, it still leaves in a lot of bar chars that will mess up XML readers. I think there is a function on cflib that does a better job, I wrote one too a while back:

Re: ColdFusion and RSS

2009-06-26 Thread bill turner
I've downloaded Ray's cfc. I'll dig into that a bit later. Thanks, Andy! Bill My blog software is all custom, barring my RSS feed. I'm using Ray Camden's RSS.cfc. The thing that catches me most of the time are ampersands . andy I wrote a blog using CF (actually, I started with someone

Re: ColdFusion and RSS

2009-06-26 Thread Dominic Watson
2009/6/26 bill turner bill.tur...@selectcomfort.com: if I wrap in CDATA, won't I lose the html markup? No, as long as you don't use XmlFormat or another XML cleaning function, you're markup will remain intact. CDATA tells the parser not to parse the contents as XML. Dominic