Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

RSS feeds

Participant ,
Aug 20, 2008 Aug 20, 2008
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
285
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 20, 2008 Aug 20, 2008
Hi,
If you are using CF 8, try using the cffeed tag to create RSS feeds.

Prasanth
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 20, 2008 Aug 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!!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2008 Aug 20, 2008
LATEST
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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources