|
-
Sep 11th, 2006, 10:14 AM
#1
Thread Starter
Addicted Member
RSSME!nu
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.
-
Sep 11th, 2006, 01:16 PM
#2
Re: RSSME!nu
Look for anything that is between '>' & '</a>', that's the Text property, the link would be anything after the "href="
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Sep 12th, 2006, 10:24 AM
#3
Thread Starter
Addicted Member
Re: RSSME!nu
but i still dont get it could u or sum1else post code for me to make the rss menu
-
Sep 12th, 2006, 11:47 AM
#4
Thread Starter
Addicted Member
Re: RSSME!nu
anyone...(out of the 38 current people that have veiwed this thread...I know ur out there...)
-
Sep 12th, 2006, 11:58 AM
#5
Re: RSSME!nu
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?
-
Sep 12th, 2006, 03:27 PM
#6
Re: RSSME!nu
 Originally Posted by mendhak
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 formatting
Last edited by ComputerJy; Sep 13th, 2006 at 12:28 PM.
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Sep 13th, 2006, 11:58 AM
#7
Thread Starter
Addicted Member
Re: RSSME!nu
Originally Posted by Louix
but i still dont get it could u or sum1else post code for me to make the rss menu.
I need code.And yes basicly i want an rss reader,but.I dont understand XML atall.
-
Sep 13th, 2006, 03:49 PM
#8
Re: RSSME!nu
 Originally Posted by ComputerJy
Actually the XML file he's talking about has HTML formatting
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.
-
Sep 13th, 2006, 03:53 PM
#9
Re: RSSME!nu
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()
-
Sep 13th, 2006, 09:13 PM
#10
Re: RSSME!nu
 Originally Posted by mendhak
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.
By mistake I clicked on "Show Generated Source" that's why I saw HTML Code
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Sep 14th, 2006, 10:29 AM
#11
Thread Starter
Addicted Member
Re: RSSME!nu
Thanks ,mendhack, i realy apretiate it.but theres nothing in there about menus
ill give it a qwick try first thogh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|