Xml 如何在我的RSS中指定一个集线器以符合WebSub?
我有RSS提要。我想用WebSub服务器即时更新我的帖子信息。我选择了谷歌免费服务器。服务器主页上有一条说明: 在//atom:feed下添加一个//atom:link标记,用于atom提要或 //rss:rss/频道,用于rss提要。//atom:link标记应具有rel 属性设置为hub,href属性设置为 我不明白rss提要的Xml 如何在我的RSS中指定一个集线器以符合WebSub?,xml,rss,websub,Xml,Rss,Websub,我有RSS提要。我想用WebSub服务器即时更新我的帖子信息。我选择了谷歌免费服务器。服务器主页上有一条说明: 在//atom:feed下添加一个//atom:link标记,用于atom提要或 //rss:rss/频道,用于rss提要。//atom:link标记应具有rel 属性设置为hub,href属性设置为 我不明白rss提要的或//rss:rss/channel下的是什么意思?根据说明,我必须添加到我的feed.xml频道部分的链接。但我不明白这个链接应该是什么样子 我找到了atom提要
或//rss:rss/channel下的是什么意思?根据说明,我必须添加到我的feed.xml
频道部分的链接。但我不明白这个链接应该是什么样子
我找到了atom提要的示例。atom链接应如下所示:
<link rel="hub" href="https://pubsubhubbub.appspot.com/" xmlns="http://www.w3.org/2005/Atom" />
找不到RSS源的任何示例。有什么想法吗
这是my feed.xml的一个示例:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Примеры фида RSS в Google Новостях</title>
<link>https://www.mysite.ua/static/rss/newsline.xml</link>
<description>Это примеры фида RSS в Google Новостях.</description>
<lastBuildDate>Fri, 23 Jan 2015 23:26:19 +0000</lastBuildDate>
<item>
<guid>https://mysite.ua/url-post.html</guid>
<pubDate>Fri, 23 Jan 2015 23:17:00 +0000</pubDate>
<title>Example 1</title>
<description>Desc</description>
<content:encoded>
<![CDATA[<p>Lorem ipsum dolor ]]>
</content:encoded>
<link>http://examples.com/sample-post.html</link>
<author>pochta@example.com (Anna Name)</author>
<enclosure url="https://examples.com/img/1300x820.jpg" type="image/jpeg" length="0"/>
</item>
</channel>
</rss>
ПццфцаRSSаGoogleаа
https://www.mysite.ua/static/rss/newsline.xml
БМППиццццRSSцGoogleццц。
2015年1月23日星期五23:26:19+0000
https://mysite.ua/url-post.html
2015年1月23日星期五23:17:00+0000
例1
描述
Lorem ipsum dolor]>
http://examples.com/sample-post.html
pochta@example.com(安娜姓名)