Write RSS (Really Simple Syndications) feed code.
By: Simply The Future Dot Com.
Introduction:
Really simple syndication (RSS) is used to publish changing information and content such as news headlines, podcasts and additions to blogs.
RSS files are constructed using xml which is similar to html.
The content that is held in a RSS file can be subscribed to and viewed using a RSS reader, by entering the RSS file web address into the RSS reader.
Write a RSS file:
You add which means it has been written to comply with XML version 1.0.
For this exercise we will be using RSS 2.0 format so add this tag to the file
.
Now after this you put a tag which starts the channel.
After the channel tag has been added you have to state the title, link, and description of the channel and it should look like this:
Put your title of channel here
Put your web address here
This is where you put information about your RSS feed and why people should read it
Now you have to add a tag including the following tags:
Item 1
www.examplewebsite.com/item1
Description for Item1
You can then add as many items as you may wish like this:
Item 1
www.examplewebsite.com/item1
Description for Item1
Item 2
www.examplewebsite.com/item2
Description for Item2
And to finish the RSS file of you must make sure to add and tags in that order:
The finished RSS file should look like this with all the elements added together:
Put your title of channel here
Put your web address
This is where you put information about your RSS feed and why people should read it
Item 1
www.examplewebsite.com/item1
Description for Item1
Item 2
www.examplewebsite.com/item2
Description for Item2
Item 3
www.examplewebsite.com/item3
Description for Item3
You should save the file as xml format ‘filename.xml’ and make sure the ‘.xml’ is at the end of the file name.
Simply The Future Dot Com
www.simplythefuture.com
|