{"id":210568,"date":"2021-02-10T09:29:06","date_gmt":"2021-02-10T01:29:06","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=210568"},"modified":"2021-01-27T09:30:14","modified_gmt":"2021-01-27T01:30:14","slug":"rss-syntax-overview","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rss-syntax-overview.html","title":{"rendered":"RSS \u8bed\u6cd5\u6982\u8ff0"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nRSS \u6307 Really Simple Syndication\uff08\u771f\u6b63\u7b80\u6613\u8054\u5408\uff09\uff0cRSS 2.0 \u7684\u8bed\u6cd5\u5f88\u7b80\u5355\uff0c\u4e5f\u5f88\u4e25\u683c\u3002RSS \u7528\u4e8e\u5728\u7f51\u7ad9\u95f4\u5206\u4eab\u4fe1\u606f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

RSS \u8bed\u6cd5<\/strong><\/div>\n

RSS 2.0 \u7684\u8bed\u6cd5\u5f88\u7b80\u5355\uff0c\u4e5f\u5f88\u4e25\u683c\u3002<\/p>\n

RSS \u5982\u4f55\u5de5\u4f5c<\/strong><\/div>\n

RSS \u7528\u4e8e\u5728\u7f51\u7ad9\u95f4\u5206\u4eab\u4fe1\u606f\u3002<\/p>\n

\u4f7f\u7528 RSS\uff0c\u60a8\u5728\u540d\u4e3a\u805a\u5408\u5668\u7684\u516c\u53f8\u6ce8\u518c\u60a8\u7684\u5185\u5bb9\u3002<\/p>\n

\u6b65\u9aa4\u4e4b\u4e00\u662f\uff0c\u521b\u5efa\u4e00\u4e2a RSS \u6587\u6863\uff0c\u7136\u540e\u4f7f\u7528 .xml \u540e\u7f00\u6765\u4fdd\u5b58\u5b83\u3002\u7136\u540e\u628a\u6b64\u6587\u4ef6\u4e0a\u4f20\u5230\u60a8\u7684\u7f51\u7ad9\u3002\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7\u4e00\u4e2a RSS \u805a\u5408\u5668\u6765\u6ce8\u518c\u3002\u6bcf\u5929\uff0c\u805a\u5408\u5668\u90fd\u4f1a\u5230\u88ab\u6ce8\u518c\u7684\u7f51\u7ad9\u641c\u7d22 RSS \u6587\u6863\uff0c\u6821\u9a8c\u5176\u94fe\u63a5\uff0c\u5e76\u663e\u793a\u6709\u5173 feed \u7684\u4fe1\u606f\uff0c\u8fd9\u6837\u5ba2\u6237\u5c31\u80fd\u591f\u94fe\u63a5\u5230\u4f7f\u4ed6\u4eec\u4ea7\u751f\u5174\u8da3\u7684\u6587\u6863\u3002<\/p>\n

\u63d0\u793a\uff1a\u8bf7\u5728 RSS \u53d1\u5e03 \u8fd9\u4e00\u8282\u6d4f\u89c8\u514d\u8d39\u7684 RSS \u805a\u5408\u5668\u670d\u52a1\u3002<\/p>\n

RSS \u5b9e\u4f8b<\/strong><\/div>\n

RSS \u6587\u6863\u4f7f\u7528\u4e00\u79cd\u7b80\u5355\u7684\u81ea\u6211\u63cf\u8ff0\u7684\u8bed\u6cd5\u3002<\/p>\n

\u8ba9\u6211\u4eec\u770b\u4e00\u4e2a\u7b80\u5355\u7684 RSS \u6587\u6863\uff1a<\/p>\n

<?<\/span>xml version<\/span>=<\/span>\"1.0\"<\/span> encoding<\/span>=<\/span>\"UTF-8\"<\/span> <\/span>?><\/span>\r\n<\/span><rss<\/span> <\/span>version<\/span>=<\/span>\"2.0\"<\/span>><\/span>\r\n\r\n<\/span><channel><\/span>\r\n  <\/span><title><\/span>\u83dc\u9e1f\u6559\u7a0b\u9996\u9875<\/span><\/title><\/span>\r\n  <\/span><link><\/span>http:\/\/www.runoob.com<\/span><\/link><\/span>\r\n  <\/span><description><\/span>\u514d\u8d39\u7f16\u7a0b\u6559\u7a0b<\/span><\/description><\/span>\r\n  <\/span><item><\/span>\r\n    <\/span><title><\/span>RSS \u6559\u7a0b<\/span><\/title><\/span>\r\n    <\/span><link><\/span>http:\/\/www.runoob.com\/rss<\/span><\/link><\/span>\r\n    <\/span><description><\/span>\u83dc\u9e1f\u6559\u7a0b Rss \u6559\u7a0b<\/span><\/description><\/span>\r\n  <\/span><\/item><\/span>\r\n  <\/span><item><\/span>\r\n    <\/span><title><\/span>XML \u6559\u7a0b<\/span><\/title><\/span>\r\n    <\/span><link><\/span>http:\/\/www.runoob.com\/xml<\/span><\/link><\/span>\r\n    <\/span><description><\/span>\u83dc\u9e1f\u6559\u7a0b XML \u6559\u7a0b<\/span><\/description><\/span>\r\n  <\/span><\/item><\/span>\r\n<\/span><\/channel><\/span>\r\n\r\n<\/span><\/rss><\/span><\/pre>\n

\u6587\u6863\u4e2d\u7684\u7b2c\u4e00\u884c\uff1aXML \u58f0\u660e - \u5b9a\u4e49\u4e86\u6587\u6863\u4e2d\u4f7f\u7528\u7684 XML \u7248\u672c\u548c\u5b57\u7b26\u7f16\u7801\u3002\u6b64\u4f8b\u5b50\u9075\u5b88 1.0 \u89c4\u8303\uff0c\u5e76\u4f7f\u7528 UTF-8 \u5b57\u7b26\u96c6(\u53ef\u652f\u6301\u4e2d\u6587)\u3002<\/p>\n

\u4e0b\u4e00\u884c\u662f\u6807\u8bc6\u6b64\u6587\u6863\u662f\u4e00\u4e2a RSS \u6587\u6863\u7684 RSS \u58f0\u660e\uff08\u6b64\u4f8b\u662f RSS version 2.0\uff09\u3002<\/p>\n

\u4e0b\u4e00\u884c\u542b\u6709 \u5143\u7d20\u3002\u6b64\u5143\u7d20\u7528\u4e8e\u63cf\u8ff0 RSS feed\u3002<\/p>\n

<\/channel> \u5143\u7d20\u6709\u4e09\u4e2a\u5fc5\u9700\u7684\u5b50\u5143\u7d20\uff1a<\/p>\n

    \n
  1. <title> - \u5b9a\u4e49\u9891\u9053\u7684\u6807\u9898\u3002\uff08\u6bd4\u5982 \u83dc\u9e1f\u6559\u7a0b\u9996\u9875\uff09<\/li>\n
  2. <link> - \u5b9a\u4e49\u5230\u8fbe\u9891\u9053\u7684\u8d85\u94fe\u63a5\u3002\uff08\u6bd4\u5982 www.runoob.com\uff09<\/li>\n
  3. - \u63cf\u8ff0\u6b64\u9891\u9053\uff08\u6bd4\u5982 \u514d\u8d39\u7f16\u7a0b\u6559\u7a0b\uff09<\/description><\/li>\n<\/ol>\n

    \u6bcf\u4e2a <channel> \u5143\u7d20\u53ef\u62e5\u6709\u4e00\u4e2a\u6216\u591a\u4e2a <item> \u5143\u7d20\u3002<\/p>\n

    \u6bcf\u4e2a <item> \u5143\u7d20\u53ef\u5b9a\u4e49 RSS feed \u4e2d\u7684\u4e00\u7bc7\u6587\u7ae0\u6216 \"story\"\u3002<\/p>\n

    <item< \u5143\u7d20\u62e5\u6709\u4e09\u4e2a\u5fc5\u9700\u7684\u5b50\u5143\u7d20\uff1a<\/p>\n

      \n
    1. <titlel> - \u5b9a\u4e49\u9879\u76ee\u7684\u6807\u9898\u3002\uff08\u6bd4\u5982 RSS \u6559\u7a0b\uff09<\/li>\n
    2. <linkl> - \u5b9a\u4e49\u5230\u8fbe\u9879\u76ee\u7684\u8d85\u94fe\u63a5\u3002\uff08\u6bd4\u5982 http:\/\/www.runoob.com\/rss\uff09<\/li>\n
    3. <descriptionl> - \u63cf\u8ff0\u6b64\u9891\u9053\uff08\u6bd4\u5982 \u514d\u8d39\u7f16\u7a0b\u6559\u7a0b\uff09<\/li>\n<\/ol>\n

      \u6700\u540e\uff0c\u540e\u9762\u7684\u4e24\u884c\u5173\u95ed <channell> \u548c <rssl>\u5143\u7d20\u3002<\/p>\n

      RSS \u4e2d\u7684\u6ce8\u91ca<\/strong><\/div>\n

      \u5728 RSS \u4e2d\u4e66\u5199\u6ce8\u91ca\u7684\u8bed\u6cd5\u4e0e HTML \u7684\u8bed\u6cd5\u7c7b\u4f3c\uff1a<\/p>\n

      <!-- \u8fd9\u662f\u4e00\u4e2a RSS \u6ce8\u91ca --><\/span><\/pre>\n

      RSS \u4f7f\u7528 XML \u6765\u7f16\u5199
      \n\u56e0\u4e3a RSS \u4e5f\u662f XML\uff0c\u8bf7\u8bb0\u4f4f\uff1a<\/p>\n

        \n
      1. \u6240\u6709\u7684\u5143\u7d20\u5fc5\u8bb8\u62e5\u6709\u5173\u95ed\u6807\u7b7e<\/li>\n
      2. \u5143\u7d20\u5bf9\u5927\u5c0f\u5199\u654f\u611f<\/li>\n
      3. \u5143\u7d20\u5fc5\u9700\u88ab\u6b63\u786e\u5730\u5d4c\u5957<\/li>\n
      4. \u5c5e\u6027\u503c\u5fc5\u987b\u5e26\u5f15\u53f7<\/li>\n<\/ol>\n

        <\/channel><\/p>\n","protected":false},"excerpt":{"rendered":"

        RSS 2.0 \u7684\u8bed\u6cd5\u5f88\u7b80\u5355\uff0c\u4e5f\u5f88\u4e25\u683c\u3002 RSS \u7528\u4e8e\u5728\u7f51\u7ad9\u95f4\u5206\u4eab\u4fe1\u606f\u3002 \u4f7f\u7528 RSS\uff0c\u60a8\u5728\u540d\u4e3a\u805a\u5408\u5668\u7684\u516c\u53f8\u6ce8 […]<\/p>\n","protected":false},"author":321,"featured_media":210570,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-210568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/210568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/321"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=210568"}],"version-history":[{"count":14,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/210568\/revisions"}],"predecessor-version":[{"id":210594,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/210568\/revisions\/210594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/210570"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=210568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=210568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=210568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}