Skip to main content
Inspiring
August 20, 2008
Question

RSS feeds

  • August 20, 2008
  • 3 replies
  • 355 views
Hi all,

I'm trying to get create our podcast rss dynamically, and as such my code loops over a query to populate th <item> sectiosn fo the feed. If I output the 'theXml' variable on the page i created the code, the RSS feed is correct. However, when i write the file to a different location (newapod.xml) for some reason the </channel> and </rss> tags (last two lines of the file) vanish.

Can anyone suggest why this might be happening? Im Stuck!
Katie
    This topic has been closed for replies.

    3 replies

    Inspiring
    August 20, 2008
    rollerskatie wrote:
    > Can anyone suggest why this might be happening? Im Stuck!
    > Katie
    >
    > <cfsetting enablecfoutputonly="yes">
    ...
    > <cfxml variable="theXML">
    > <cfoutput>
    ...
    > </cfoutput>
    > <cfoutput query="allPods">
    ...
    > </cfoutput>
    > </channel>
    > </rss>
    > </cfxml>

    With that <cfsetting...> tag anything outside of
    <cfoutput>...</cfoutput> blocks are going to be ignored.

    Inspiring
    August 20, 2008
    Coldfusion 7 unfortunately and I'm still stuck on this :( the </channel> and </rss> tags just disappear, so my feed won't validate, this is so frustrating!!
    Prasanth_Kumar_S
    Inspiring
    August 20, 2008
    Hi,
    If you are using CF 8, try using the cffeed tag to create RSS feeds.

    Prasanth