RSS Feed -windows mobile application - Programmers Heaven

Howdy, Stranger!

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

Categories

RSS Feed -windows mobile application

Preeti_21Preeti_21 Posts: 3Member
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

  • PsightoplazmPsightoplazm Posts: 332Member ✭✭
    I believe you can actually initialize an XmlTextReader with the uri of the feed and you'll be all set.
    ><//~Psightoplasm`~
  • Preeti_21Preeti_21 Posts: 3Member
    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
  • Preeti_21Preeti_21 Posts: 3Member
    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
  • PsightoplazmPsightoplazm Posts: 332Member ✭✭
    [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.