Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. RSS

RSS

Scheduled Pinned Locked Moved Web Development
toolsxmltutorialquestionannouncement
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    allia
    wrote on last edited by
    #1

    Does anybody know how to generate an RSS feed? As I understand it, the xml file generated is static. It is not a dynamic script. i.e., that it is generated once and then available for read by feeders. Is this true? Would I generate it each time a 'latest update' has occured? Does anyone have a sample script that generates RSS?

    P 1 Reply Last reply
    0
    • A allia

      Does anybody know how to generate an RSS feed? As I understand it, the xml file generated is static. It is not a dynamic script. i.e., that it is generated once and then available for read by feeders. Is this true? Would I generate it each time a 'latest update' has occured? Does anyone have a sample script that generates RSS?

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      There is no rule that says the feed need be dynamic or static. Much like any other file available over the net it can be either. Depends on your requirements. There are as many ways of making an RSS feed as there are ways to make a webpage. Here are two methods; Create a valid RSS 2.0 document using XmlTextWriter and Google to RSS. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...

      A 1 Reply Last reply
      0
      • P Paul Watson

        There is no rule that says the feed need be dynamic or static. Much like any other file available over the net it can be either. Depends on your requirements. There are as many ways of making an RSS feed as there are ways to make a webpage. Here are two methods; Create a valid RSS 2.0 document using XmlTextWriter and Google to RSS. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...

        A Offline
        A Offline
        allia
        wrote on last edited by
        #3

        Thanks, If I was to make an RSS of the 'latest updates'. How would the dynamic rule work? When I first thought of it, it seemed like only when I press the RSS icon the file is generated - but that can't be true. It has to be generated before hand so that you can use feeders to read the data.... So when will be the right time to export the 'latest update' rss feed? Thanks in advance.

        P 1 Reply Last reply
        0
        • A allia

          Thanks, If I was to make an RSS of the 'latest updates'. How would the dynamic rule work? When I first thought of it, it seemed like only when I press the RSS icon the file is generated - but that can't be true. It has to be generated before hand so that you can use feeders to read the data.... So when will be the right time to export the 'latest update' rss feed? Thanks in advance.

          P Offline
          P Offline
          Paul Watson
          wrote on last edited by
          #4

          You naturally don't want your RSS file being re-generated everytime someone hits it, rather you only want it re-generating on update to content on your website. So I would put the RSS updater code in the same block as the code that saves/updates your website. That way the RSS is only updated when the site updates. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...

          A 2 Replies Last reply
          0
          • P Paul Watson

            You naturally don't want your RSS file being re-generated everytime someone hits it, rather you only want it re-generating on update to content on your website. So I would put the RSS updater code in the same block as the code that saves/updates your website. That way the RSS is only updated when the site updates. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...

            A Offline
            A Offline
            allia
            wrote on last edited by
            #5

            Thanks, you have been lots of help. You have ensured my understanding. Also, thank you for the link to the RSS article - I didn't notice it before. I live to code.

            1 Reply Last reply
            0
            • P Paul Watson

              You naturally don't want your RSS file being re-generated everytime someone hits it, rather you only want it re-generating on update to content on your website. So I would put the RSS updater code in the same block as the code that saves/updates your website. That way the RSS is only updated when the site updates. regards, Paul Watson Bluegrass South Africa Brian Welsch wrote: "blah blah blah, maybe a potato?" while translating my Afrikaans. Crikey! ain't life grand? Einstein says...

              A Offline
              A Offline
              allia
              wrote on last edited by
              #6

              Something doesn't sit right... I noticed the RSS on codeproject and on other sites as well. It seems that it is not a static file, but instead it is generated on demand. The file is of '.asp' or '.aspx' extension. I figured it should be '.xml'. Am I wrong? What is the prefered method by RSS feeders? Also, Weird thing - I can't view the source of the RSS page on codeproject.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups