Im using the Twitter API to read the Favorites RSS, it generates the following output:
http://vl3.co.uk/favs/getfavs.php
I'm not sure why this file seems to be incorrect, doesnt come up in my RSS reader or render correctly in the browser. Can anyone shed any light on this?
开发者_C百科If the output is not valid RSS how can I make it so?
Secondly I'd like to cache the RSS feed to then use something like Magpie RSS Parser.
First of all, your URL seems to be served as text/html instead of application/rss+xml. Second, the XML content does not follow the RSS specification at all, so it's not going to work in a standard RSS reader.
RSS specs: http://cyber.law.harvard.edu/rss/rss.html
That's not RSS. You can't just create any arbitrary set of XML tags and hope that an RSS reader will understand it - RSS is a standard, with particular tags required.
Your best bet is to take an existing RSS feed and see how it's constructed. You can check a feed you've created against the Feed Validator.
精彩评论