facebook twitter hatena line email

Rss

提供: 初心者エンジニアの簡易メモ
2015年5月20日 (水) 02:58時点における127.0.0.1 (トーク)による版 (ページの作成:「==RSSチェックツール== http://www.feedvalidator.org/ ==RSS 1.0 フィードフォーマットの例== <?xml version="1.0" encoding="UTF-8"?> <<nowiki />rdf:RDF x...」)

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)
移動: 案内検索

RSSチェックツール

http://www.feedvalidator.org/

RSS 1.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/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xml:lang="ja">
  <channel rdf:about="サイトのRSSのURL">
    <title>サイトのタイトル</title>
    <link>サイトのURL</link>
    <description>サイトの内容</description>
    <dc:date>RSSの最終更新日時</dc:date>
    <dc:language>ja</dc:language> 
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="記事1のURL" />
        <rdf:li rdf:resource="記事2のURL" />
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="記事1のURL">
    <title>記事1のタイトル</title>
    <link>記事1のURL</link>
    <description><![CDATA[記事1の内容]]></description>
    <dc:creator>記事1の作者名</dc:creator>
    <dc:date>記事1の作成日時</dc:date>
  </item>
  <item rdf:about="記事2のURL">
    <title>記事2のタイトル</title>
    <link>記事2のURL</link>
    <description><![CDATA[記事2の内容]]></description>
    <dc:creator>記事2の作者名</dc:creator>
    <dc:date>記事2の作成日時</dc:date>
  </item>
</rdf:RDF>

RSS 2.0 フィードフォーマットの例

<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Feed Title</title>
    <link>http://yourwebsite.com/</link>
    <description>Feed Description</description>
    <language>en-us</language>
    <pubDate>Mon, 03 Jan 2005 12:00:00 GMT</pubDate>
    <item>
      <title>Article Title</title>
      <link>http://yourwebsite.com/articlelink.html</link>
      <description>Your content included here.</description>
    </item>
    <item>
      <title>Sports</title>
      <link>http://yourwebsite.com/sportslink.html</link>
      <description>Your content included here.</description>
    </item>
  </channel>
</rss>


Atom 1.0 フィードフォーマットの例

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title> Feed Title </title> 
  <link href=" http://yourwebsite.com/"/>
  <updated>2003-12-13T18:30:02Z</updated>
  <author> 
    <name>Your Name</name>
  </author> 
  <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
  <entry>
    <title>Article Title</title>
    <link href=" http://yourwebsite.com/articlelink.html "/>
    <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
    <updated>2003-12-13T18:30:02Z</updated>
    <summary>Some text.</summary>
  </entry>
  <entry>
    <title>Sports</title>
    <link href=" http://yourwebsite.com/sportslink.html "/>
    <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344e45ab90</id>
    <updated>2003-12-14T13:30:55Z</updated>
    <summary>Some text.</summary>
  </entry>
</feed>


参考

http://memorva.jp/memo/api/rss.php