article

Create your own RSS Feed

Email
Submitted on: 1/7/2015 3:32:00 AM
By: graphiz (from psc cd)  
Level: Intermediate
User Rating: By 3 Users
Compatibility: ASP (Active Server Pages), HTML, VbScript (browser/client side)
Views: 1861
 
     Really Simple Syndication (RSS) is a lightweight XML format designed for sharing headlines, news, website updates and other Web content easily amongst various websites. Think of RSS as a mini portable database which can be shared at other websites using really simple methods. RSS also helps you to get more traffic to your webpage, so you can consider it as means of better webmasters methdology. RSS is not too hard to understand to create. Here in this article I would be showing how to create your own RSS Feed using ASP. In my next article I would be showing how to create a XML parser which can take RSS Feed as input and output HTML. A version of which can be seen on my website at http://www.graphiz.net/Blog-G/rssreader.asp The current article can also be viewed at http://www.graphiz.net/Blog%2DG/viewentry.asp?id=43


 
				

What is RSS?
Really Simple Syndication (RSS) is a lightweight XML format designed for sharing headlines, news, website updates and other Web content easily amongst various websites. Think of RSS as a mini portable database which can be shared at other websites using really simple methods. RSS also helps you to get more traffic to your webpage, so you can consider it as means of better webmasters methdology.

RSS Syntax
RSS defines an XML grammar for sharing news, view and web content. Each RSS text file contains both static information about your site, plus dynamic information about your new stories and blogs, all surrounded by matching start and end tags which being predefined provides a universal acceptance. The starting static tags in RSS file are TITLE, LINK, DESCRIPTION, COPYRIGHT and GENERATOR. You can provide your website information here.

Graphiz Design Blog RSS Feed for Latest Articles
http://www.graphiz.net/Blog-G/journal.asp
Welcome to Graphiz, where I serve you the latest news, articles, review, tech stories, hot and fresh. Whether you are person in quest for code, tip or someone just browsing, I'll keep you up to date with the latest announcements.
Copyright (C) Graphiz.net All rights reserved.
Graphiz RSS Generator

Each story or blog is defined by an tag, which contains a TITLE, URL, and DESCRIPTION. Here's an example:


How to use RSS
http://www.graphiz.net/Blog-G/viewarticle?id=40
Description goes here
Tuesday, 24 May 2004 12:00:00 AM GMT

Each RSS channel can contain up to 15 items and is easily parsed using ASP, Perl or other programming language or open source software.
Once you've created and validated your RSS text file, register it at the various aggregators, and watch the hits roll in. Any site can now grab and display your feed regularly, driving traffic your way. Update your RSS file, and all the external sites that subscribe to your feed will be automatically updated.

If you are not really aware as to where to publish your RSS feed, take care look at what communication expert has to say.Robin Good has provided his Best Blog Directory and RSS Submission sites which can be viewed at http://www.masternewmedia.org/2004/02/05/rsstop55_best_blog_directory.htm

How to Create RSS Blog in ASP
This can be a seperate blog but you can very well add to RSS Introduction here. After your static code, try putting code which gets all blog information from database and put them in XML format.

<%
set conn = server.createobject(""adodb.connection"")
DSNtemp=""DRIVER={Microsoft Access Driver (*.mdb)}; ""
DSNtemp=dsntemp & ""DBQ="" & server.mappath(""YourDB.mdb"")
conn.Open DSNtemp
sqlstmt = ""SELECT * FROM Your_Blog_Table""
Set rs = Server.CreateObject(""ADODB.Recordset"")
rs.Open sqlstmt, DSNtemp, 3, 3
x = 0
For x = 1 to 10
If rs.eof then
Exit For
Else
Response.Write """"
Response.Write """" & rs(""Your_Blog_Title"") & """"
Response.Write ""Your_Blog_Link""
Response.Write ""Your_Blog_Summary""
Response.Write ""Your_Blog_Posted_Date""
Response.Write ""
""
rs.MoveNext
End If
Next
%>

That is it and you have your own personalized RSS feed.

Other Useful Links at Graphiz related to RSS
  • Universal RSS Reader -http://www.graphiz.net/Blog-G/rssreader.asp
    If you are confused as to how your RSS Feed would look at various webpages, try this Universal RSS reader which would parse your feed and display as a simple HTML page
  • Open RSS Directory - http://www.graphiz.net/Blog-G/rssdirectory.asp
    This contains links to various RSS feeds all around the web. Browse through them for tons of information and usefulness of having an RSS Feed


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.