Hi
I am trying to read RSS feed from bbc news website, my code is like this
Sub Parser_EndElement (Uri As String, Name As String, Text As StringBuilder)
Dim heading,linkrs,descr As String
If Parser.Parents.IndexOf("item") > -1 Then
If Name="title" Then heading=Text
Else If Name="description" Then descr=Text
End If
If heading.Length > 0 Then listrss.AddTwoLines(heading,descr)
End Sub
RSS feed is like this
<item>
<title>Galleon founder Rajaratnam guilty</title>
<description>US hedge fund billionaire Raj Rajaratnam is found guilty of making tens of millions of dollars from insider trading.</description>
<link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-13188529</link>
<guid isPermaLink="false">http://www.bbc.co.uk/news/business-13188529</guid>
<pubDate>Wed, 11 May 2011 15:58:25 GMT</pubDate>
<media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/51580000/jpg/_51580546_011474775-1.jpg"/>
<media:thumbnail width="144" height="81" url="http://news.bbcimg.co.uk/media/images/51580000/jpg/_51580545_011474775-1.jpg"/>
</item>
I am getting value of title, but it is not reading the other values like description, link
please help
I am trying to read RSS feed from bbc news website, my code is like this
Sub Parser_EndElement (Uri As String, Name As String, Text As StringBuilder)
Dim heading,linkrs,descr As String
If Parser.Parents.IndexOf("item") > -1 Then
If Name="title" Then heading=Text
Else If Name="description" Then descr=Text
End If
If heading.Length > 0 Then listrss.AddTwoLines(heading,descr)
End Sub
RSS feed is like this
<item>
<title>Galleon founder Rajaratnam guilty</title>
<description>US hedge fund billionaire Raj Rajaratnam is found guilty of making tens of millions of dollars from insider trading.</description>
<link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-13188529</link>
<guid isPermaLink="false">http://www.bbc.co.uk/news/business-13188529</guid>
<pubDate>Wed, 11 May 2011 15:58:25 GMT</pubDate>
<media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/51580000/jpg/_51580546_011474775-1.jpg"/>
<media:thumbnail width="144" height="81" url="http://news.bbcimg.co.uk/media/images/51580000/jpg/_51580545_011474775-1.jpg"/>
</item>
I am getting value of title, but it is not reading the other values like description, link
please help