Search code examples
c#rssfeed

Desktop Application that uses RSS feeds


I need to develop a desktop application that shows the contents of RSS feeds taken from other websites. I have never worked withe RSS feeds before. How can this be done? Can I use C# to develop the desktop application?


Solution

  • An RSS feed is just XML. Google the RSS specification. In C# you could do something like:

    XmlReader rdr;
    Stream strm;
    try
    {
        WebClient client = new WebClient();
        strm = client.OpenRead(uri);
        rdr = XmlReader.Create(strm);
        while (!rdr.EOF) {
            // Do something
        }
    }