<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d6651501\x26blogName\x3dNotes+on+tech\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLACK\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://ypjain-notesontech.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://ypjain-notesontech.blogspot.com/\x26vt\x3d8064441079851785414', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Notes on tech

Notes on technology, business, enterpreneurship, economy, markets along with interesting general tidbits.


RSS/Atom autodiscovery

6/06/2005 07:05:00 AM, posted by anand

How does your RSS/Atom aggregator or even the Firefox browser recognize that a particular site supports RSS or Atom feeds? They use the autodiscovery mechanism that is present in the page itself. The combination of rel="alternate" and type="application/rss+xml" in a <link> defines this as a link to an RSS file. The <link> tag (as shown below) in the <head> section of the html page, the page/site declares that it also has an RSS/Atom feed option.

Sample autodiscovery link for RSS
<link rel="alternate" type="application/rss+xml" title="RSS" href="url/to/rss/file">
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/simplesecurity">

Sample autodiscovery link for ATOM
<link rel="alternate" type="application/atom+xml" title="Notes on tech" href="http://www.ypjain.com/anand/atom.xml">

Rajesh Jain's emergic.org support XML feeds
<link rel="alternate" type="text/xml" title="XML" href="http://www.emergic.org//index.rdf">


I am adding RSS autodiscovery to my FooBar Search Alerts so had to do a bit of research and thought that I could share with others.
« Home

» Post a Comment