hi,guys.just wondering how would i be able to get rss news updates from the site 'http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml#'
(BBC UK News) in a menustrip.
thanks.
Printable View
hi,guys.just wondering how would i be able to get rss news updates from the site 'http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml#'
(BBC UK News) in a menustrip.
thanks.
Look for anything that is between '>' & '</a>', that's the Text property, the link would be anything after the "href="
but i still dont get it could u or sum1else post code for me to make the rss menu
anyone...(out of the 38 current people that have veiwed this thread...I know ur out there...)
It's just an XML file. You can read it using HTTPRequest. You can load it into XMLDocument if you'd like. You essentially want to create an RSS reader, correct?
Actually the XML file he's talking about has HTML formattingQuote:
Originally Posted by mendhak
I need code.And yes basicly i want an rss reader,but.I dont understand XML atall.Quote:
Originally Posted by Louix
but i still dont get it could u or sum1else post code for me to make the rss menu.
It's XML with XSLT formatting to give it the "appearance of HTML" so that browsers can display it in a more legible format. Take a look at the source of the page.Quote:
Originally Posted by ComputerJy
To get the XML from that feeds page:
VB Code:
Dim sb As StringBuilder = New StringBuilder Dim buf() As Byte Dim wr As HttpWebRequest = CType(WebRequest.Create("http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml"), HttpWebRequest) Dim wresp As HttpWebResponse = CType(wr.GetResponse, HttpWebResponse) Dim sr As Stream = wr.GetResponseStream Dim strTemp As String = "" Dim count As Integer = 0 Do count = sr.Read(buf, 0, buf.Length) If Not (count = 0) Then strTemp = Encoding.ASCII.GetString(buf, 0, count) sb.Append(srTemp) End If Loop While count > 0 Dim doc As New XmlDocument() doc.InnerXml = sb.ToString()
By mistake I clicked on "Show Generated Source" that's why I saw HTML CodeQuote:
Originally Posted by mendhak
Thanks ,mendhack, i realy apretiate it.but theres nothing in there about menus
ill give it a qwick try first thogh