目次

RSS 1.0 のフォーマット (RSS 1.0 の書式と形式)

RSS1.0のフォーマットを紹介します。

書式例

<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">

  <channel rdf:about="http://www.ipentec.com/feed.rdf"> <!-- RSSのURL -->
    <link>http://www.ipentec.com/</link> <!-- サイトのURL -->
    <title>フィードのタイトル</title>
    <dc:publisher>出版者</dc:publisher>
    <description>このフィードの説明</description>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://www.ipentec.com/contents?id=101"/>
        <rdf:li rdf:resource="http://www.ipentec.com/contents?id=102"/>
      </rdf:Seq>
    </items>
  </channel>

  <item rdf:about="http://www.ipentec.com/contents?id=101">
    <link>http://www.ipentec.com/</link> <!-- リンク先URL -->
    <title>記事タイトル</title>
    <dc:creator>記事作成者</dc:creator>
    <description>記事の説明</description>
    <dc:date>2014-06-02T00:00:00+09:00</dc:date> <!-- 出版日時 -->
  </item>

  <item rdf:about="http://www.ipentec.com/contents?id=102">
    <link>http://www.ipentec.com/</link>
    <title>記事タイトル</title>
    <dc:creator>記事作成者</dc:creator>
    <description>記事の説明</description>
    <dc:date>2014-07-01T00:00:00+09:00</dc:date> <!-- 出版日時 -->
  </item>
</rdf:RDF>
補足
個々のコンテンツ要素はitemタグで記述するとともにchannelタグ内のitemsタグ内にも記述します。 また、dateタグに記載する時刻表記はISO8601のフォーマットで記述します。
著者
iPentec.com の代表。ハードウェア、サーバー投資、管理などを担当。
Office 365やデータベースの記事なども担当。
掲載日: 2014-03-03
iPentec all rights reserverd.