RSSのタイトル、リンク、および説明要素
定義と使用法
<item>要素は、記事にRSSフィードを定義し、その要素は3つの必須子要素があります。
- <タイトル> - プロジェクトのタイトルを定義します(例:RSSチュートリアル)
- <リンク> - プロジェクトへのUltra-定義された接続(例:http://www.w3cschool.cc/rss/)
- <説明> - プロジェクトの説明(例:w3school最新のRSSチュートリアル)
例
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3CSchool Home Page</title>
<link>http://www.w3cschool.cc</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3cschool.cc/rss</link>
<description>New RSS tutorial on W3CSchool</description>
</item>
<item>
<title>XML Tutorial</title>
<link>http://www.w3cschool.cc/xml</link>
<description>New XML tutorial on W3CSchool</description>
</item>
</channel>
</rss>
<rss version="2.0">
<channel>
<title>W3CSchool Home Page</title>
<link>http://www.w3cschool.cc</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3cschool.cc/rss</link>
<description>New RSS tutorial on W3CSchool</description>
</item>
<item>
<title>XML Tutorial</title>
<link>http://www.w3cschool.cc/xml</link>
<description>New XML tutorial on W3CSchool</description>
</item>
</channel>
</rss>
»をお試しください
RSSの完全なリファレンスマニュアル