TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
NEWS READER in C#
Anirudha Gohokar
Jun 23, 2011
9.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
NEWS READER in C#.
News Reader.zip
Before I continue with my explanation I want you to be familiar with
XML[basic]
and
RSS[Really Simple Syndication]
.
XML in C#
RSS
This application is console based and shows latest news from
THE HINDU
newspaper. What this application does is that it retrieves the RSS feed[XML file] from THE HINDU's site
VISIT HERE
and extracts the data from it.
RSS are the feeds[Seller] to which you subscribe[Customer].
CHROME,IE,FIREFOX
shows up to date news by subscribing to these feeds.RSS feeds are in XML format. So we use XmlReader class to read the contents in it.
Here is the XML format from the newspapers RSS feed.
<item>
<title>I HATE CONGRESS</title>
<author>ME</author>
<category>Politics</category>
<link>null</link>
<description>Congress sucks.</description>
<pubDate>02-03-2011</pubDate>
</item>
So, the only thing we have to do is to extract the data from the RSS feed file and show it to the user with a rich GUI.
Similar funda can be used to extract latest news provided by newspapers such as
THE TIMES OF INDIA
or
MAHARASHTA TIMES
from there RSS feeds which are freely available on there sites or you can use it for various other purpose.
Check out the project uploaded with this article.
Next Recommended Reading
Convert Code From C# To VB.NET And From VB.NET To C#