RSS Feed -windows mobile application

Hi,

I am developing a device application wherein I need to subscribe to an RSS feed and get notified when there is new news available.How to go with it?
Can anyone provide me the logic or any links for refernce?

Thanks in advance

Comments

  • I believe you can actually initialize an XmlTextReader with the uri of the feed and you'll be all set.
    ><//~Psightoplasm`~
  • Thanks for the reply.

    Can you please elaborate and explain as to go about with the initialisation of XMLTextReader....any sample code will be of great help

    Thanks again
  • Thanks for the reply.

    Can you please elaborate and explain as to go about with the initialisation of XMLTextReader....any sample code will be of great help

    Thanks again
  • [code]
    var m = new XmlTextReader("http://msdn.microsoft.com/rss.xml");
    while (m.Read())
    {
    while (m.Name != "item")
    m.Read();
    while (m.Name != "title")
    m.Read();
    var title = m.ReadElementContentAsString();
    while (m.Name != "description")
    m.Read();
    var desc = m.ReadElementContentAsString();

    Console.WriteLine("-------------------");
    Console.WriteLine("***" + title + "
    ");
    Console.WriteLine(desc);
    Console.WriteLine("-------------------
    ");
    }

    Console.ReadKey();
    [/code]
    ><//~Psightoplasm`~
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories