BBC news

J

Jassim Rahma

I want to know how can I grab the news from BBC website news ticker and
display in my windows forms applications? similary I want to get the news
from other news websites, cnn, aljazeera, etc..
 
N

Nicholas Paldino [.NET/C# MVP]

Jassim,

Your best bet would be to check to see if they have RSS feeds which you
can access and then scroll that information. Otherwise, you will have to
deal with proprietary formats for each site, or worse, screen scrape each
site.
 
J

Jassim Rahma

this is the RSS feed for BBC. can you tell me how can i do what you have
mentioned..

http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml



Nicholas Paldino said:
Jassim,

Your best bet would be to check to see if they have RSS feeds which you
can access and then scroll that information. Otherwise, you will have to
deal with proprietary formats for each site, or worse, screen scrape each
site.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jassim Rahma said:
I want to know how can I grab the news from BBC website news ticker and
display in my windows forms applications? similary I want to get the news
from other news websites, cnn, aljazeera, etc..
 
N

Nicholas Paldino [.NET/C# MVP]

Jassim,

Well, RSS has a schema defined for it which the feed conforms to. All
the other feeds will conform (or should, at least) conform to that schema.
Because of that, you will know where and when elements occur. Given that,
you can easily load the XML document and then find the elements with the
information you want to use.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jassim Rahma said:
this is the RSS feed for BBC. can you tell me how can i do what you have
mentioned..

http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml



Nicholas Paldino said:
Jassim,

Your best bet would be to check to see if they have RSS feeds which
you can access and then scroll that information. Otherwise, you will
have to deal with proprietary formats for each site, or worse, screen
scrape each site.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jassim Rahma said:
I want to know how can I grab the news from BBC website news ticker and
display in my windows forms applications? similary I want to get the news
from other news websites, cnn, aljazeera, etc..
 
J

Jassim Rahma

how will i know if the file was updated with latest news?


Nicholas Paldino said:
Jassim,

Well, RSS has a schema defined for it which the feed conforms to. All
the other feeds will conform (or should, at least) conform to that schema.
Because of that, you will know where and when elements occur. Given that,
you can easily load the XML document and then find the elements with the
information you want to use.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jassim Rahma said:
this is the RSS feed for BBC. can you tell me how can i do what you have
mentioned..

http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml



Nicholas Paldino said:
Jassim,

Your best bet would be to check to see if they have RSS feeds which
you can access and then scroll that information. Otherwise, you will
have to deal with proprietary formats for each site, or worse, screen
scrape each site.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

I want to know how can I grab the news from BBC website news ticker and
display in my windows forms applications? similary I want to get the
news from other news websites, cnn, aljazeera, etc..
 
G

Guest

Jassim,
An easy way to handle the display of an RSS feed is to load it into a
DataSet with the ReadXml method:
DataSet ds = new DataSet();
ds.ReadXml("urlofRssFed");

there will be several DataTables in your DataSet, you can inspect to find
out which is the relevant one (usually it is ds.Tables[3], but not always).
Then, you can databind this table to your favorite control such as a
DataGridView.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com



Jassim Rahma said:
this is the RSS feed for BBC. can you tell me how can i do what you have
mentioned..

http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml



Nicholas Paldino said:
Jassim,

Your best bet would be to check to see if they have RSS feeds which you
can access and then scroll that information. Otherwise, you will have to
deal with proprietary formats for each site, or worse, screen scrape each
site.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jassim Rahma said:
I want to know how can I grab the news from BBC website news ticker and
display in my windows forms applications? similary I want to get the news
from other news websites, cnn, aljazeera, etc..
 
N

Nicholas Paldino [.NET/C# MVP]

Jassim,

Have you taken a look at the RSS specification? There are elements in
the feed which tell when the item is published, as well as when the last
time the content of a channel changed, etc, etc. Take a look, I think you
will find out all you need from the specification:

http://cyber.law.harvard.edu/rss/rss.html


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jassim Rahma said:
how will i know if the file was updated with latest news?


Nicholas Paldino said:
Jassim,

Well, RSS has a schema defined for it which the feed conforms to. All
the other feeds will conform (or should, at least) conform to that
schema. Because of that, you will know where and when elements occur.
Given that, you can easily load the XML document and then find the
elements with the information you want to use.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jassim Rahma said:
this is the RSS feed for BBC. can you tell me how can i do what you have
mentioned..

http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml



in message Jassim,

Your best bet would be to check to see if they have RSS feeds which
you can access and then scroll that information. Otherwise, you will
have to deal with proprietary formats for each site, or worse, screen
scrape each site.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

I want to know how can I grab the news from BBC website news ticker and
display in my windows forms applications? similary I want to get the
news from other news websites, cnn, aljazeera, etc..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top