<?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>过眼•物影天狼 &#187; dasBlog</title>
	<atom:link href="http://www.tangrui.net/category/computer-science-and-technology/programming/aspnet/dasblog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tangrui.net</link>
	<description>博客通天下 淡墨书豪辞</description>
	<lastBuildDate>Fri, 29 May 2009 03:25:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>给 dasBlog 添加支持 SiteMap 的功能</title>
		<link>http://www.tangrui.net/2006/08/26/add-sitemap-feature-to-dasblog</link>
		<comments>http://www.tangrui.net/2006/08/26/add-sitemap-feature-to-dasblog#comments</comments>
		<pubDate>Sat, 26 Aug 2006 15:16:21 +0000</pubDate>
		<dc:creator>Rui Tang</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[dasBlog]]></category>
		<category><![CDATA[计算机科学与技术]]></category>

		<guid isPermaLink="false">http://www.tangrui.net/?p=39</guid>
		<description><![CDATA[
&#160;&#160;&#160;&#160;&#160;&#160;今天享受了一下 Google 的 WebMasters 服务，再加上 Google Analytics，真有 WebMater 的感觉。


&#160;&#160;&#160;&#160;&#160;&#160;在这个服务里面，为了网络爬虫能够更好地抓取页面，Google 需要你提供 SiteMap，一个 XML 格式文件。试了 Google 推荐的几个程序和服务，感觉都不是很好，鉴于 dasBlog 是开源的，简单研究了一下，为其添加了生成 SiteMap 的功能。


&#160;&#160;&#160;&#160;&#160;&#160;首先，下载 net.tangrui.DasBlog.Web.Services.dll 文件，将其放到 dasBlog 的 bin 目录下。


&#160;&#160;&#160;&#160;&#160;&#160;然后，修改 web.config 文件，在 &#60;httpHandlers&#62; 标签下，添加这样的节点：


&#60;add verb=&#34;*&#34; 
&#160;&#160;path=&#34;sitemap.ashx&#34; 
&#160;&#160;type=&#34;net.tangrui.DasBlog.Web.Services.SiteMapHandler, net.tangrui.DasBlog.Web.Services&#34; /&#62;


&#160;&#160;&#160;&#160;&#160;&#160;最后，访问 http://yourwebsite/sitemap.ashx 就可以了。


&#160;&#160;&#160;&#160;&#160;&#160;如果需要，可以到这里下载源代码。
]]></description>
			<content:encoded><![CDATA[<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;今天享受了一下 Google 的 <a href="http://www.google.com/webmasters">WebMasters</a> 服务，再加上 Google Analytics，真有 WebMater 的感觉。
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在这个服务里面，为了网络爬虫能够更好地抓取页面，Google 需要你提供 SiteMap，一个 XML 格式文件。试了 Google 推荐的几个程序和服务，感觉都不是很好，鉴于 dasBlog 是开源的，简单研究了一下，为其添加了生成 SiteMap 的功能。
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;首先，<a id="p89" href="http://www.tangrui.net/wp-content/uploads/2006/11/nettangruidasblogwebservices.zip">下载</a> net.tangrui.DasBlog.Web.Services.dll 文件，将其放到 dasBlog 的 bin 目录下。
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;然后，修改 web.config 文件，在 &lt;httpHandlers&gt; 标签下，添加这样的节点：
</p>
<p><pre><pre>
&lt;add verb=&quot;*&quot; 
&nbsp;&nbsp;path=&quot;sitemap.ashx&quot; 
&nbsp;&nbsp;type=&quot;net.tangrui.DasBlog.Web.Services.SiteMapHandler, net.tangrui.DasBlog.Web.Services&quot; /&gt;
</pre></pre></p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最后，访问 http://yourwebsite/sitemap.ashx 就可以了。
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果需要，可以到<a id="p88" href="http://www.tangrui.net/wp-content/uploads/2006/11/nettangruidasblogwebservicesdll.zip">这里</a>下载源代码。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tangrui.net/2006/08/26/add-sitemap-feature-to-dasblog/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

