<?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>Yoichi Kawasaki blog &#187; xml</title>
	<atom:link href="http://yk55.com/blog/tags/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://yk55.com/blog</link>
	<description>the place to organize and record my ideas ...</description>
	<lastBuildDate>Sat, 28 Aug 2010 03:47:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Reader CacheからItemを削除する方法</title>
		<link>http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/</link>
		<comments>http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 14:55:05 +0000</pubDate>
		<dc:creator>yoichi</dc:creator>
				<category><![CDATA[Random / ランダムな話]]></category>
		<category><![CDATA[web / ウェブ関連]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://yk55.com/blog/?p=206</guid>
		<description><![CDATA[一度誤った投稿をしてしまいそれがGoogle Reader Cacheに保存されてしまうと削除は難しいようだ（参照 Google Reader FAQ: Deleted posts in my blog&#8217;s feed）。仮にその記事を削除したとしても同じ。というわけでいきなりこの記事のタイトル「Google Reader CacheからItemを削除する方法」はできないということになる。ただ、FAQでコメントされているように、どうしてもCacheから削除したい場合、削除はできないがアップデートはできるという特性を活かしダミー記事Itemでリプレースするという方法がある。Itemはguidをキーとして認識する。よって同一guidのダミーItemを用意しそいつでリプレースをかけることで何とか取り繕うことができる。



まずは誤って投稿した記事ItemがCacheされてしまった様子。タイトル・コンテンツともに空にもかかわらずキャッシュされてしまっている。仮にこのItemのguidがhttp://yk55.com/blog/?p=200とする。この誤ってキャッシュされてしまったItemを別の何かでリプレースするためのダミー記事を用意する。もちろんその記事には同一guidを指定してやる。
&#60;item&#62;
&#160; &#160; &#60;title&#62;[dummy] Google Reader CacheからItemを削除する方法&#60;/title&#62;
&#160; &#160; &#60;link&#62;http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/&#60;/link&#62;
&#160; &#160; &#60;comments&#62;http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/#comments&#60;/comments&#62;
&#160; &#160; &#60;pubDate&#62;Sat, 27 Feb 2010 14:55:05 +0000&#60;/pubDate&#62;
&#160; &#160; &#60;dc:creator&#62;yoichi&#60;/dc:creator&#62;
&#160; &#160; &#60;category&#62;&#60;![CDATA[Uncategorized]]&#62;&#60;/category&#62;
&#160; &#160; &#60;category&#60;/category&#62;
&#160; &#160; &#60;guid isPermaLink=&#34;false&#34;&#62;http://yk55.com/blog/?p=200&#60;/guid&#62;
&#160; &#160; &#60;description&#62;~略~&#60;/description&#62;
&#160; &#160; &#60;content:encoded&#62;~略~&#60;/content:encoded&#62;
&#160; &#160; &#60;wfw:commentRss&#62;http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/feed/&#60;/wfw:commentRss&#62;
&#160; &#160; &#60;slash:comments&#62;0&#60;/slash:comments&#62;
&#60;/item&#62;
これを追加したRSSフィードを公開することで時間がたてばフィードがクローリングされ、さきほどの間違ったItemがダミーItemでリプレースされる。以下が見事にリプレースされた結果。



あまりにもべたなやり方だけど、どうしてもなんとかしたい場合にはこの方法で。おわり。
]]></description>
			<content:encoded><![CDATA[<p>一度誤った投稿をしてしまいそれがGoogle Reader Cacheに保存されてしまうと削除は難しいようだ（参照 Google Reader FAQ: <a href="http://www.google.com/support/forum/p/reader/thread?tid=677bcc4ae33bb7c8&#038;hl=en">Deleted posts in my blog&#8217;s feed</a>）。仮にその記事を削除したとしても同じ。というわけでいきなりこの記事のタイトル「Google Reader CacheからItemを削除する方法」はできないということになる。ただ、<a href="http://www.google.com/support/forum/p/reader/thread?tid=677bcc4ae33bb7c8&#038;hl=en">FAQ</a>でコメントされているように、どうしてもCacheから削除したい場合、削除はできないがアップデートはできるという特性を活かしダミー記事Itemでリプレースするという方法がある。Itemはguidをキーとして認識する。よって同一guidのダミーItemを用意しそいつでリプレースをかけることで何とか取り繕うことができる。</p>
<p style="text-align: center;">
<img class="aligncenter" src="http://farm5.static.flickr.com/4062/4392541160_8e9a6c30ef.jpg" alt="Google Reader Cached Item - Wrong Item" width="500" height="185" />
</p>
<p>まずは誤って投稿した記事ItemがCacheされてしまった様子。タイトル・コンテンツともに空にもかかわらずキャッシュされてしまっている。仮にこのItemのguidがhttp://yk55.com/blog/?p=200とする。この誤ってキャッシュされてしまったItemを別の何かでリプレースするためのダミー記事を用意する。もちろんその記事には同一guidを指定してやる。</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;item<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>[dummy] Google Reader CacheからItemを削除する方法<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;link<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/link<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;comments<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/#comments<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/comments<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pubDate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Sat, 27 Feb 2010 14:55:05 +0000<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pubDate<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dc:creator<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>yoichi<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dc:creator<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;category<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[Uncategorized]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/category<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;category</span><span style="color: #000000; font-weight: bold;">&lt;/category<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;guid</span> <span style="color: #000066;">isPermaLink</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>http://yk55.com/blog/?p=200<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/guid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>~略~<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;content:encoded<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>~略~<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/content:encoded<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;wfw:commentRss<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/feed/<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/wfw:commentRss<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;slash:comments<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/slash:comments<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/item<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>これを追加したRSSフィードを公開することで時間がたてばフィードがクローリングされ、さきほどの間違ったItemがダミーItemでリプレースされる。以下が見事にリプレースされた結果。</p>
<p style="text-align: center;">
<img src="http://farm5.static.flickr.com/4044/4392541220_888acc3324.jpg" width="500" height="226" alt="Google Reader Cached Item - Replaced Item" />
</p>
<p>あまりにもべたなやり方だけど、どうしてもなんとかしたい場合にはこの方法で。おわり。</p>
]]></content:encoded>
			<wfw:commentRss>http://yk55.com/blog/2010/02/27/google-reader-cache-item-removal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
