Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

BBC news

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jassim Rahma - 10 Aug 2007 18:50 GMT
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..
Nicholas Paldino [.NET/C# MVP] - 10 Aug 2007 20:16 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>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..
Jassim Rahma - 10 Aug 2007 20:18 GMT
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

> Jassim,
>
[quoted text clipped - 6 lines]
>>display in my windows forms applications? similary I want to get the news
>>from other news websites, cnn, aljazeera, etc..
Nicholas Paldino [.NET/C# MVP] - 10 Aug 2007 20:27 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> this is the RSS feed for BBC. can you tell me how can i do what you have
> mentioned..
[quoted text clipped - 11 lines]
>>>display in my windows forms applications? similary I want to get the news
>>>from other news websites, cnn, aljazeera, etc..
Jassim Rahma - 10 Aug 2007 20:35 GMT
how will i know if the file was updated with latest news?

> Jassim,
>
[quoted text clipped - 19 lines]
>>>>display in my windows forms applications? similary I want to get the
>>>>news from other news websites, cnn, aljazeera, etc..
Nicholas Paldino [.NET/C# MVP] - 11 Aug 2007 03:19 GMT
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

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> how will i know if the file was updated with latest news?
>
[quoted text clipped - 21 lines]
>>>>>display in my windows forms applications? similary I want to get the
>>>>>news from other news websites, cnn, aljazeera, etc..
Peter Bromberg [C# MVP] - 10 Aug 2007 21:20 GMT
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

> this is the RSS feed for BBC. can you tell me how can i do what you have
> mentioned..
[quoted text clipped - 11 lines]
> >>display in my windows forms applications? similary I want to get the news
> >>from other news websites, cnn, aljazeera, etc..

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.