Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 如何将我的徽标添加到rss源?_Xml_Rss_Feed_Atom Feed - Fatal编程技术网

Xml 如何将我的徽标添加到rss源?

Xml 如何将我的徽标添加到rss源?,xml,rss,feed,atom-feed,Xml,Rss,Feed,Atom Feed,如何将我的徽标添加到rss源?这将适用于Atom源: <feed> <logo><path to image></logo> <icon><path to icon></icon> </feed> 这将适用于RSS源: <channel> ... <image> <url>url to image </url>

如何将我的徽标添加到rss源?

这将适用于Atom源:

<feed>
   <logo><path to image></logo>
   <icon><path to icon></icon>
</feed>

这将适用于RSS源:

<channel>
   ...
   <image>
    <url>url to image </url>
    <title>image title </title>
    <link><path to image></link>
    <width>pixel width</width>
    <height>pixel height</height>
    <description>description here </description>
  </image>
  ...
</channel>

...
指向图像的url
图像标题
像素宽度
像素高度
描述在这里
...
Atom RSS

<feed>
   ...
   <icon>http://example.org/favicon.ico</icon>
   <logo>http://example.org/logo.jpg</logo>
   ...
</feed>

...
http://example.org/favicon.ico
http://example.org/logo.jpg
...
RSS


...
http://www.snook.ca/img/rss_banner.gif
斯努克
http://www.snook.ca/jonathan/
111
32
ca提供了有关web开发的提示、技巧和书签
...

<channel>
   ...
   <image>
    <url>http://www.snook.ca/img/rss_banner.gif</url>
    <title>Snook.ca</title>
    <link>http://www.snook.ca/jonathan/</link>
    <width>111</width>
    <height>32</height>
    <description>Snook.ca features tips, tricks, and bookmarks on web development</description>
  </image>
  ...
</channel>