2011-07-28 125 views
2
<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> -tag。我能做什么?xml/rss文件创建者

+0

请改善问题。第二个标签? –

+0

据我所知,'channel'内只允许有一个'image'元素。您将离开规范http://www.rssboard.org/rss-specification – KingCrunch

+1

可能的重复[用PHP解析RSS/Atom提要的最佳方式](http://stackoverflow.com/questions/250679/best-way -to-解析-RSS原子的进料与 - PHP)。其中大部分可以回写到提要。由于RSS是XML,它也是[PHP的最佳XML解析器]的可能重复(http://stackoverflow.com/questions/188414/best-xml-parser-for-php/3616044#3616044) – Gordon

回答

0

您只能在Feed中包含一个顶级<image>标记。它用于识别整个Feed,而不是任何项目。

+0

好的bro thnx ....我只想知道这一点。因为我不确定... – keyur