Jump to content
cmd

feeds vb.net

Recommended Posts

cmd

Boas a todos,

Estou neste momento a desenvolver uma aplicação que me permite receber os feeds (só os títulos) de páginas web, tenho o seguinte código:

' Current Path to RSS Feed
'set the file path member var
Private mRssUrl As String = "http://feeds.feedburner.com/vbfeeds"
Dim doc As New XmlDocument()
Dim navigator As XPathNavigator = doc.CreateNavigator()
Dim nodes As XPathNodeIterator = navigator.Select("/rss/channel/item/title")

nodes.MoveNext()

'clean up the text for display
Dim node As XPathNavigator = nodes.Current
Dim tmp As String = node.Value.Trim()
   

'news item title
lb_feeds.Text = tmp

Consigo receber bem os títulos no entanto não consigo é, quando chega ao último feed, que ele recomece do início.

Sugestões?


Cumps.cmd

Share this post


Link to post
Share on other sites
cmd

Boas,

Tenho este código:

nodes.MoveNext()

'clean up the text for display
Dim node As XPathNavigator = nodes.Current
Dim tmp As String = node.Value.Trim()
   

'news item title
lb_feeds.Text = tmp

dentro de um timer que em cada 5 segundos vai mudando os títulos, mas quando chega ao último feed fica parado, daí querer recomeçar tudo de novo.


Cumps.cmd

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.