hi all,
I really need your help with a small script syntax.
$FeedHeader = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<rss version=\"2.0\" xmlns:creativeCommons=\"http://backend.userland.com/creativeCommonsRssModule\">\n<channel>\n<title>$FeedTitle</title>\n<link>$ScriptPath/index.php</link>\n<description>$FeedDesc</description>\n<atom10:link xmlns:atom10=\"http://www.w3c.org/2005/Atom\" rel=\"self\" href=\"$ScriptPath/index.php\" type=\"application/rss+xml\"/>\n\n";
$FeedFooter = "<copyright>Copyright 2010 All Rights Reserved.</copyright>\n</channel>\n</rss>\n";
print $FeedHeader . $Items4Feed . $FeedFooter;
exit;
}
When I validate the feed I see that it is valid but with some errors:
"This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations."
Feeds should not be served with the "text/html" media type [help]
line 7, column 0: Use of unknown namespace: [url]http://www.w3c.org/2005/Atom[/url] [help]
<atom10:link xmlns:atom10="http://www.w3c.org/2005/Atom" rel="self" href="h ...
line 10, column 0: Missing atom:link with rel="self" [help]
</channel>
Can anyone help please?