xml / rss文件创建者

时间:2011-07-28 11:28:03

标签: php

<channel>
  <title>Company</title>
  <link>http://www.ndroid360.com/companypms/index.php/main_con</link>
  <description>Companypms - By Keyur Modi </description>
  <language>en-us</language>
  <image>
    <title>Company</title>
    <url>http://www.ndroid360.com/companypms/public/admin/dashboard/images/keyur.jpg</url>
    <link>http://www.ndroid360.com/companypms/index.php/main_con</link>
    <width>90</width>
    <height>36</height>
  </image>
  <item>
    <title>Project Add</title>
    <link>http://www.ndroid360.com/companypms/index.php/main_con</link>
    <description>
      OK, modi sarkar
    </description>
  </item>
  <item>
    <title>A Post Title</title>
    <guid isPermaLink="true">http://www.mydomain.com/file-location/</guid>
    <link>http://www.ndroid360.com/companypms/index.php/main_con</link>
    <pubDate>Wed, 30 Apr 2009 23:00:00 +1100</pubDate>
    <description><![CDATA[ <p>This is a brief summary of the post, so tempting that noone  will be able to resist clicking through.</p> ]]></description> 
  </item>
</channel>

我想在第二个<item></item> - 标记之后放置一个图像。我该怎么办?

1 个答案:

答案 0 :(得分:0)

您只能在Feed中添加一个顶级<image>标记。它用于识别整个饲料,而不是任何物品。