Results 1 to 11 of 11

Thread: RSSME!nu

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    Exclamation 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.

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    Re: RSSME!nu

    but i still dont get it could u or sum1else post code for me to make the rss menu

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    Re: RSSME!nu

    anyone...(out of the 38 current people that have veiwed this thread...I know ur out there...)

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: RSSME!nu

    Quote 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

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    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.

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: RSSME!nu

    Quote 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.

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: RSSME!nu

    To get the XML from that feeds page:

    VB Code:
    1. Dim sb As StringBuilder = New StringBuilder
    2. Dim buf() As Byte
    3. Dim wr As HttpWebRequest = CType(WebRequest.Create("http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml"), HttpWebRequest)
    4. Dim wresp As HttpWebResponse = CType(wr.GetResponse, HttpWebResponse)
    5. Dim sr As Stream = wr.GetResponseStream
    6. Dim strTemp As String = ""
    7. Dim count As Integer = 0
    8. Do
    9.  count = sr.Read(buf, 0, buf.Length)
    10.  If Not (count = 0) Then
    11.    strTemp = Encoding.ASCII.GetString(buf, 0, count)
    12.    sb.Append(srTemp)
    13.  End If
    14. Loop While count > 0
    15.  
    16. Dim doc As New XmlDocument()
    17. doc.InnerXml = sb.ToString()

  10. #10
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: RSSME!nu

    Quote 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

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    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
  •  



Click Here to Expand Forum to Full Width