проблема с кормлением в Firefox и Google - PullRequest
0 голосов
/ 07 сентября 2010

У меня проблема при создании канала.он может быть прочитан фидридером, а также показан в Firefox, но не удалось в Google.

это мой заголовок фида:

<?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>

Это мой фид выход с 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 Ответ

2 голосов
/ 08 сентября 2010

Ваш XML искажен, и Firefox отобразил его только потому, что он был в хорошем настроении.В строке 38 вы закрываете <item>, который вы еще не открыли.

...