RSS parsing last build Date. Fastest way to do so please.
Posted
by Paul
on Stack Overflow
See other posts from Stack Overflow
or by Paul
Published on 2010-06-03T19:15:20Z
Indexed on
2010/06/03
19:24 UTC
Read the original article
Hit count: 472
Dim myRequest As System.Net.WebRequest = System.Net.WebRequest.Create(url)
Dim myResponse As System.Net.WebResponse = myRequest.GetResponse()
Dim rssStream As System.IO.Stream = myResponse.GetResponseStream()
Dim rssDoc As New System.Xml.XmlDocument()
Try
rssDoc.Load(rssStream)
Catch nosupport As NotSupportedException
Throw nosupport
End Try
Dim rssItems As System.Xml.XmlNodeList = rssDoc.SelectNodes("rss/channel")
'For i As Integer = 0 To rssItems.Count - 1
Dim rssDetail As System.Xml.XmlNode
rssDetail = rssItems.Item(0).SelectSingleNode("lastBuildDate")
Folks this is what I'm using to parse an RSS feed for the last updated time. Is there a quicker way? Speed seems to be a bit slow on it as it pulls down the entire feed before parsing.
© Stack Overflow or respective owner