Saturday, November 14, 2009

RSS channels?

does anyone kno how i can create my own RSS channel for music? and also how to make it so that other ppl can also access my RSS channel?

RSS channels?
It's actually easier than you might think. All you need to do is create a web page that will output an XML document that uses fields which an RSS reader can interpret. XML is like HTML in that it uses paired tags like %26lt;title%26gt; and %26lt;/title%26gt;.


The basic structure of your RSS page should look like this:





%26lt;rss version="2.0"%26gt;





%26lt;channel%26gt;





%26lt;title%26gt;My Song Site%26lt;/title%26gt;


%26lt;link%26gt;%26lt;/link%26gt;http://mysongsite.com/%26lt;/link%26gt;


%26lt;description%26gt;This is my song site%26lt;/description%26gt;


%26lt;language%26gt;en-us%26lt;/language%26gt;





%26lt;item%26gt;


%26lt;pubDate%26gt;Monday, May 28, 2007 8:11:00 PM%26lt;/pubDate%26gt;


%26lt;title%26gt;I Want To Hold Your Hand%26lt;/title%26gt;


%26lt;link%26gt;%26lt;/link%26gt;http://mysongsite.com/hold.htm%26lt;/link%26gt;


%26lt;description%26gt;This is the Beatle's first hit ...%26lt;/description%26gt;


%26lt;/item%26gt;





%26lt;item%26gt;


%26lt;pubDate%26gt;Tuesday, May 29, 2007 9:13:00 AM%26lt;/pubDate%26gt;


%26lt;title%26gt;Help%26lt;/title%26gt;


%26lt;link%26gt;%26lt;/link%26gt;http://mysongsite.com/help.htm%26lt;/link%26gt;


%26lt;description%26gt;This is the Beatle's second hit ...%26lt;/description%26gt;


%26lt;/item%26gt;





%26lt;/channel%26gt;


%26lt;/rss%26gt;





So for every entry in your RSS feed, you want to create a separate item that's nested with a pubdate, title, description, and link to the particular item.





Then, when you're ready to publish, just add a link to that RSS page (maybe you've called it mysite.rss) to your main page, with a little RSS icon that you can probably capture from some site.


No comments:

Post a Comment