First off. After examining some existing rss/xml feeds. I have found that the <rss> tag is already used whithin them documents. As a result lets assume the element is called the
<feed> element. Another thing I noted, is that at the top of the file, there is information that can be used to determine how to parse the data. As an example from a random twitter feed shows:
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:twitter="http://api.twitter.com">
Basically the real world example that prompted this suggestion is a project I have just started working on. As a "pre-dev" splash page. I want to implement an rss feed directly from twitter and put the "latest dev update" on the front page. Dynamically updating without page refresh would not be a requirement.
To issustrate better, here is the web page:
http://www.playkoco.com/
and here is where I would propose simply using a HTML element instead of a bunch of scripting:
- Code: Select all
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Online Action Trading Card Game.">
<title>KOCO: Online Action TCG</title>
<link href="kocostyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<header></header>
<section id=splash>
<img src=images/logo_trans_matte.gif>
</section>
<p>Action Based: Online TCG</p>
<hr>
<h1>DEV UPDATES</h1>
<section>
<!-- RSS TWITTER FEED HERE-->
<p>An RSS feed from Twitter containing the latest updates for the development of KOCO, will be displayed here.</p>
<!-- RSS TWITTER FEED HERE-->
</section>
<p><a href=#>more</a></p>
<hr>
<footer>
<p>This website makes extensive use of new web based technologies and coding.
<br>We recomend that you make sure you are running the
<a href=#>latest version</a> of your current web browser. </p>
<p id=copyright> © 2010 King Of Cards Online || liamhockley@hotmail.com </p>
</footer>
</body>
</html>
Inside the comment tag, the <feed> element would be like so:
- Code: Select all
<section>
<!-- RSS TWITTER FEED HERE-->
<p><feed href=http://twitter.com/statuses/user_timeline/230845588.rss></feed></p>
<!-- RSS TWITTER FEED HERE-->
</section>
hope that sheds a little more light on my suggestion.