0

Hi i am collecting a lot of information from different websites and putting them together for personal use.

there is a rss feed link.

http://picasaweb.google.com/data/feed/base/all?alt=rss&kind=photo&access=public&filter=1&q=waldorf+hilton&hl=en_US

How can i use it? in case of html i just take them and assign them to literals .But how can i display this .

Here is my code..

    Dim rssFeed As HttpWebRequest = DirectCast(WebRequest.Create("http://picasaweb.google.com/data/feed/base/all?alt=rss&kind=photo&access=public&filter=1&q=waldorf+hilton&hl=en_US"), HttpWebRequest)
    Dim rssData As DataSet = New DataSet()
    rssData.ReadXml(rssFeed.GetResponse().GetResponseStream())

    Dim Title, Description As String
    Dim channelItems As Object() = rssData.Tables(2).Rows(0).ItemArray
    Dim titleColumn As Integer = rssData.Tables(2).Columns("title").Ordinal
    Dim descriptionColumn As Integer = rssData.Tables(1).Columns("description").Ordinal
    Title = channelItems.GetValue(titleColumn).ToString()
    Description = channelItems.GetValue(descriptionColumn).ToString()

    Repeater1.DataSource = rssData.Tables(2)
    Repeater1.DataBind()

Thank you

ConfusedCoder
  • 175
  • 1
  • 6
  • 17

1 Answers1

0

Are you trying to do this on the web page or inside a vb.net application?

For a webpage: Parse RSS with jQuery

For vb.net, here's one solution: http://www.go4expert.com/forums/showthread.php?t=4577

Community
  • 1
  • 1
Brian Hoover
  • 7,861
  • 2
  • 28
  • 41