FORUM
Forums Main | New Posts | My Topics | Profile Forum | User Settings | Subscriptions
Post Reply
Apr 03 2011, 8:05 pm - Replied by: Grapevine


How to Create an RSS 2.0 Feed


If you can learn HTML, you can easily learn how to build your own RSS 2.0 feeds. I'll take you through the steps to creating an RSS feed from scratch.

Step 1: XML Declaration

Since RSS 2.0 must validate as XML, the first line in your rss feed must be the XML declaration.

The encoding is optional but recommended. If your using something other than UTF-8 be sure to change the above line.

Note: If you are using CFML and have whitespace due to the Application.cfm file you can reset the output buffer using 

Step 2: RSS Channel

In this step we need to open up the rss tag, and the channel tag, all of your feed content goes inside these tags.

Step 3: RSS Feed Information

Next you place information about your RSS feed such as the title of it, the description, and a link to the the site.

The title of my RSS 2.0 Feedhttp://www.example.com/This is my rss 2 feed descriptionMon, 12 Sep 2005 18:37:00 GMTen-us

The lastBuildDate should be the date and time that the feed was last changed. Dates in RSS feeds should comply to RFC 822. In CFML the DateFormat mask would be ddd, dd mmm yyyy and the TimeFormat would be HH:mm:ss. Dates should be offset to GMT. The lastBuildDate tag is not required but is highly recommended.

Step 4: RSS Items

Next we enumerate over each RSS item, each item has a title, link, and description, publication date, and guid.

Title of an itemhttp://example.com/item/123http://example.com/item/123Mon, 12 Sep 2005 18:37:00 GMT[CDATA[ This is the description. ]]

Make sure you escape any characters that might cause your XML to invalidate, these characters include , & - I like to enclose any content that may contain HTML inside a CDATA section.

Note: In CFML you can use the XmlFormat function to escape special characters in XML.

Step 5: Close Channel and RSS tags.

Step 6: Validate your feed

Validate your feed using FeedValidator.org.

Other things to take note of

  • Content Type - See my post on content types for RSS feeds
  • Encoding - You should include the encoding in your Content-Type HTTP header, and in the XML declaration.
  • Styling - If you want to make your RSS feed look a little nicer you can CSS stylesheet for your RSS feed.
  • Categories - It's a good idea to include category tags in your RSS feeds as well, these go inside the item tag. You can give an item multiple categories by adding a tag for each one.

I have just scratched the surface of what you can do with RSS feeds, so check out the RSS 2.0 Spec for more info.


For more info click this link http://www.petefreitag.com/item/465.cfm
How do you like me now??
Apr 05 2011, 9:03 pm - Replied by: Grapevine


Latest SEO Update…. Google's Farmer or Panda Update

Google just released a sweeping search engine ranking change 2 weeks ago that has dropped many low quality sites from the high rankings of it's search engine.
I will post a copy of what the official response from Google was to the sweeping changes.

"Our recent update is designed to reduce rankings for low-quality sites, so the key thing for webmasters to do is make sure their sites are the highest quality possible. We looked at a variety of signals to detect low quality sites. Bear in mind that people searching on Google typically don't want to see shallow or poorly written content, content that is copied from other websites, or information that is just not that useful. In addition, it's important for webmasters to know that low quality content on part of a site can impact a site's ranking as a whole. For this reason, if you believe you've been impacted by this change you should evaluate all the content on your site and do your best to improve the overall quality of the pages on your domain. Removing low quality pages or moving them to a different domain could help your rankings for the higher quality content.

We've been reading this thread within the Googleplex and appreciate both the concrete feedback as well as the more general suggestions. This is an algorithmic change and it doesn't have any manual exceptions applied to it, but this feedback will be useful as we work on future iterations of the algorithm.

Wysz "   

http://www.seroundtable.com/google-farmer-advice-13090.html

How do you like me now??
Apr 05 2011, 9:05 pm - Replied by: Grapevine


Googles new website speed test tool. Read blog post on this subject.
http://www.lansinggrapevine.com/adminpanel/viewframe_YWRtaW4ubGFuZ3VhZ2UucGhyYXNlcy5scmV0dXJuX2luZGV4Lm NvbnRlbnRfdHJ1ZS5jc2VhcmNoX3dlbGNvbWUtaW50cm8=/
How do you like me now??
Post Reply


















*** Copyright 2007 to Present © Lansing Events | Lansing Classifieds | Lansing News | Jobs In Lansing MI ***