2011-07-28 123 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