2010-09-07 99 views
0

我創建飼料時有問題。它可以通過feedreader讀取,也可以在Firefox中顯示,但在谷歌失敗。在Firefox和谷歌飼料問題

這是我進料管:

<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"> 
<channel> 
<title>Myfeed</title> 
<link>http://www.myfeed.com/</link> 
<description>This is myfeedFeed</description> 
<lastBuildDate>Mon, 12 agust 2105 11:17:00 GMT</lastBuildDate> 
<language>en-us</language> 

這是我進outut有2項

<?xml version="1.0" encoding="UTF-8"?> 
<rss version="2.0" 
    xmlns:content="http://purl.org/rss/1.0/modules/content/" 
    xmlns:wfw="http://wellformedweb.org/CommentAPI/" 
    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    xmlns:atom="http://www.w3.org/2005/Atom" 
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/" > 
<channel> 
<title>myfeed Feed</title> 
<atom:link href="http://www.localhost.com/" rel="self" type="application/rss+xml" /> 
<link>http://www.localhost.com/</link> 
<description>This is myfeed Feed</description> 
<lastBuildDate>Mon, 12 Sep 2015 18:37:00 GMT</lastBuildDate> 
<language>en-us</language> 
<sy:updatePeriod>weekly</sy:updatePeriod> 
<sy:updateFrequency>1</sy:updateFrequency> 
<title>Hello Developer</title> 
<link>http://localhost.com/</link> 
<guid>http://localhost.com/</guid> 
<pubDate>20100907</pubDate> 
<dc:creator>myfeed</dc:creator> 
<category><![CDATA[Developer]]></category> 
<category><![CDATA[Tutorial]]></category> 
<category><![CDATA[Wordpress]]></category> 
<description><![CDATA[Hello developer license]]></description> 
<license>Developer</license> 

<quantity>1</quantity> 
<filename>http://localhost.com/wp-content/uploads/downloads/2010/05/that.zip</filename> 
<file_description>Hello developer license</file_description> 
<diversion>1.1</diversion> 
<hits>0</hits> 
<user>myfeed</user> 
<members>1</members> 

<mirrors>1</mirrors> 
</item><item> 
<title>Hello Developer 2</title> 
<link>http://localhost.com/</link> 
<guid>http://localhost.com/</guid> 
<pubDate>20100907</pubDate> 
<dc:creator>myfeed</dc:creator> 
<category><![CDATA[Developer]]></category> 
<category><![CDATA[Tutorial]]></category> 
<category><![CDATA[Wordpress]]></category> 
<description><![CDATA[Hello developer license]]></description> 

<license>Developer</license> 
<quantity>1</quantity> 
<filename>http://localhost.com/wp-content/uploads/downloads/2010/06/this.zip</filename> 
<file_description>Hello developer license</file_description> 
<diversion>1.1</diversion> 
<hits>0</hits> 
<user>myfeed</user> 
<members>1</members> 
<mirrors>1</mirrors> 
</item></channel> 
</rss> 
+1

請發佈完整內容或至少完成1項內容。 – shamittomar 2010-09-07 06:54:58

+1

你是什麼意思,但在谷歌失敗?谷歌瀏覽器? – 2010-09-07 07:53:40

+0

是的,在谷歌瀏覽器。 – justjoe 2010-09-07 10:31:01

回答

2

你的XML的格式不正確和Firefox顯示它只是因爲它是在一個好心情。有意思的是,在第38行,您將關閉您尚未打開的<item>