我坚持这个.我的项目是这样做的.本周你将为一家网络开发公司创建一个主题.
* You can use http://www.1kbgrid.com/ for a base design.
* Come up with a color scheme that will match this logo.
* Decide what your top links should be. Create an RSS feed for these top pages.
* Create a report that states the scope of the project (why you are doing it), the top level pages, why you picked the color scheme,etc.
Run Code Online (Sandbox Code Playgroud)
好吧我已经完成了和rss的事情,这就是它的样子
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
<title>Web design software</title>
<link></link>
<description>Has different soft ware and prices.</description>
<item>
<title>Adobe Dreamweaver</title>
<link>http://shopping.yahoo.com/search?p=web%20design</link>
<description>This tells you how much it cost and what it is
for.</description>
</item>
<item>
<title>Frontpage 2003 upgrade</title>
<link>
http://www.softwaremedia.com/microsoft/frontpage/frontpage-
2003-upgrade.html?ovchn=PGR&ovcrn=39202323&ovtac=CMP&ovcpn=frontpage-2003---upgrade</link>
<description>THis is to help build a better web
site.</description>
</item>
<item>
<title>WebPlus X4 Website Maker Mini Box</title>
<link>
http://accessories.us.dell.com/sna/productdetail.aspx?sku=A3310055&cs=04&c=us&l=en&dgc=SS&cid=52102&lid=1342490</link>
<description>It helps you to make websites</description>
</item>
</channel>
</rss>
Run Code Online (Sandbox Code Playgroud)
我坚持的是如何决定我的顶级链接应该是什么.为这些首页创建一个RSS提要.好的问题是我想连接rss feed或者甚至是可能的.我完全迷失在这个问题上.谢谢你准备好了.
Joh*_*hnP 10
您通常使用<link>标记链接到主站点的RSS文档.看起来应该是这样的
<link rel="alternate" type="application/rss+xml" title="Top Web design software Feed" href="http://LINKTOMYRSSFILE" />
Run Code Online (Sandbox Code Playgroud)
如果您的站点是动态站点,则需要将LINKTOMYRSSFILE替换为生成RSS的文件的链接.如果它是一个静态文件,只需将此文件保存在您的服务器中并指向它.
此外,您的主频道链接应指向显示所有此内容的页面链接.
编辑
首先,您应该使用W3C服务来验证您的Feed.他们指出了什么是错误/最佳实践,并告诉您如何解决它们(使用错误旁边的帮助链接)
确保空<link></link>标记包含您网站的网址
在评论中回答您的问题
缺少原子:与rel ="self"链接
根据RSS顾问委员会的最佳实践配置文件,在Feed中识别提要的URL使其更具可移植性,自包含且更易于缓存.由于这些原因,Feed应包含用于此目的的atom:link.
来自:http://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html
您可以通过将<rss>标记更改为来解决此问题
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
Run Code Online (Sandbox Code Playgroud)
并具有以下项目
<atom:link href="http://LINKTOFEED" rel="self" type="application/rss+xml"/>
Run Code Online (Sandbox Code Playgroud)
第12行,第2列:item应包含一个guid元素
建议您提供guid,如果可能,请将其设为永久链接.这使得聚合器不会重复项目,即使存在编辑更改也是如此.
关于s的常见问题是它们与s的比较.他们不是一回事吗?是的,在某些内容系统中,在其他内容系统中没有.在某些系统中,是博客项目的永久链接.但是,在其他系统中,每个系统都是较长文章的概要,指向文章,并且是博客条目的永久链接.
因此,在您的情况下,将以下内容添加到您的每个项目将解决它
<guid isPermaLink="false">LINKTOSOFTWARE</guid>
Run Code Online (Sandbox Code Playgroud)
将LINKTOSOFTWARE替换为代码中的链接<link></link>.
我纠正了你的错误,你的饲料验证很好.您只需要修复这些错误.
您可以按照本教程了解如何将RSS源添加到您的页面:https://developer.mozilla.org/en/RSS/Getting_Started/Syndicating
就像在页面中添加HTML标记一样简单.