• 0

[VB.net]RSS Feeds


Question

Basically i am trying to code an application for my Windows Mobile Phone Running Windows Mobile 6.0. Im going to be using Visual Studio 2008 with .net 3.5 framework in mind.

I want to be able to get an RSS feed and display it inside a vb.net application in a more friendly way.

But as i have never done this before in vb.net im a little stuck, are there any specific handels i can use and if so exactly how would i do it.

The RSS feed has 5 items in it.

With a title, description, link, guid, pubdate, and category. I know im going to need an if loop in there etc and what not. But the thing is i should be able to do that, but im not sure on how to pull the XML data then display it inside a label or whatever.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Basically i am trying to code an application for my Windows Mobile Phone Running Windows Mobile 6.0. Im going to be using Visual Studio 2008 with .net 3.5 framework in mind.

I want to be able to get an RSS feed and display it inside a vb.net application in a more friendly way.

But as i have never done this before in vb.net im a little stuck, are there any specific handels i can use and if so exactly how would i do it.

The RSS feed has 5 items in it.

With a title, description, link, guid, pubdate, and category. I know im going to need an if loop in there etc and what not. But the thing is i should be able to do that, but im not sure on how to pull the XML data then display it inside a label or whatever.

The .NET Framework provides the System.XML.XMLTextReader and System.XML.XMLReader class to read, parse, and create a dataset from XML.

You can easily populate a dataset from the XMLTextReader:

DataSet dSet = new DataSet();
XmlTextReader xReader = new XmlTextReader(url);
 dSet.ReadXml(xReader);

Good luck!

Link to comment
Share on other sites

  • 0
Basically i am trying to code an application for my Windows Mobile Phone Running Windows Mobile 6.0. Im going to be using Visual Studio 2008 with .net 3.5 framework in mind.

I want to be able to get an RSS feed and display it inside a vb.net application in a more friendly way.

But as i have never done this before in vb.net im a little stuck, are there any specific handels i can use and if so exactly how would i do it.

The RSS feed has 5 items in it.

With a title, description, link, guid, pubdate, and category. I know im going to need an if loop in there etc and what not. But the thing is i should be able to do that, but im not sure on how to pull the XML data then display it inside a label or whatever.

Sorry gave you C# code.

Dim dSet as DataSet = new DataSet()
Dim xReader as XMLTextReader = new XMLTextReader()
dSet.ReadXML(xReader)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.