RSS 2.0 標準

本文最新版本於 RSS 2.0 標準
RSS 2.0 specification
Blog: RSS 2.0 Specification
看自己寫的 RSS 符不符合標準.
驗證: Feed Validator for Atom and RSS
什麼是 RSS?
A9 自製的 Search RSS 1.0
OpenSearch
OpenSearch RSS 1.0
參考一下中文版的東東~ 不過比較舊了點~
資源描述架構模型暨語法規格書


小記:
以下是必要的..
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:product="http://tw.yahoo.com">
<channel>
<title>This is Title</title>
<link>http://tw.yahoo.com/</link>
<description>Search results for \"".iconv_str($p, $eo)."\"</description>
<item>
item 裡面要加什麼都隨意. 不過要用<product:tagname>包起來</product:tagname>
</item>
</channel>
</rss>
在 <?xml version="1.0" encoding="UTF-8"?> 下面 加
<?xml-stylesheet href="http://blog.plogworld.org.tw/styles/rss.css" type="text/css"?>
就可以看到比較有格式的 RSS 2.0 的產物~ 🙂
要特別注意 <item> 裡面包的東西.
一定要有 <title> 或 <description>>
而且 title, description 不能用 <product:title>、<description>..
一定只能用 <title> 和 <description>

作者: Tsung

對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.

發表迴響

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料