Jump to content

RSS feed will not validate


jasonc

Recommended Posts

For some reason I am unable to get RSS to work properly.

 

It seems to work sort of in FireFox but not in IE.

 

Using the w3c Validator site it shows errors...

 

I have put stars *** to indicate what line these errors are on.

 

what is wrong with my code?

 

can anyone help me out.

 

 

 

----

This feed does not validate.

 

      line 21, column 37: XML parsing error: <unknown>:21:37: not well-formed (invalid token) [help]

 

<guid>http://site.co.uk/?ac=vi&a=28012010</guid>

______________^

 

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

 

 

      line 3, column 0: Undocumented use of atom:link [help]

 

          <atom:link href="http://http://site.co.uk/rss.php" rel="self" type="appli ...

----

 

 

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
*line 3*<atom:link href="http://http://site.co.uk/rss.php" rel="self" type="application/rss+xml" />
<channel>
<ttl>1</ttl>
<title>Welcome to Recent updates</title>
<link>http://site.co.uk/?s=rssimg</link>
<description>RSS Feed</description>
<language>en-us</language>
<pubDate>Sat, 06 Feb 2010 13:14:48 GMT</pubDate>
<lastBuildDate>Sat, 06 Feb 2010 13:14:48 GMT</lastBuildDate>

<generator>OnTheFly</generator>
<image>
  <title>Welcome to Recent updates</title>
  <url>http://site.co.uk/images/image.png</url>
  <link>http://site.co.uk/?s=rssimg</link>
  <width>88</width>
  <height>31</height>

</image>
<item>
	<title>View items</title>
*line 21*		<guid>http://site.co.uk/?ac=v&a=20</guid>
	<pubDate></pubDate>
</item>

<item>

	<title>View Minutes</title>
	<guid>http://site.co.uk/?m=22</guid>
	<pubDate></pubDate>
</item>

<item>
	<title>Next meeting</title>
	<guid>http://site.co.uk/?ac=v&a=20</guid>

	<pubDate></pubDate>
</item>

</channel>
</rss>

Link to comment
https://forums.phpfreaks.com/topic/191149-rss-feed-will-not-validate/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.