Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.