Outer Web Thought Log
January 03, 2003
XML encoding of RSS feeds

Thanks to Ovidiu, I fixed my RSS and RSS/RDF feeds, and made sure they validate. One question to all, though. In Sam's feeds, I see all description elements contain 'escaped' (X)HTML:

<item> <title>Fans</title> 
<link>http://www.intertwingly.net/blog/1080.html</link> <description>&
lt;p&gt;&lt;a href=&quot;http://radio.weblogs.com/0106046/2003/01/02.html#a204&quot;&gt;Gordon
Weakliem&lt;/a&gt;: &lt;em&gt;These days, intertwingly.net is beating Yahoo!
hands down.&lt;/em&gt; Why, thank you Gordon.&lt;/p&gt;
&lt;p&gt;Apparently Jenny
&lt;a href=&quot;http://www.j-mo.com/archives/000543.php&quot;&gt;enjoyed reading&lt;/a&gt; my site too.
I found &lt;a href=&quot;http://www.j-mo.com/&quot;&gt;her
site&lt;/a&gt; very pleasing to the eye too.&lt;/p&gt;</description>
</item>

whereas in mine and Ovidiu's, we chose to wrap this is in a CDATA section:

<item> <title>American Deserts</title>
<description><![CDATA[<a class="image" href="/ovidiu/gallery/places/IMG_2158" title="Devil's Golf Course - 
  Death Valley,
  California"><img src="/ovidiu/gallery/albums/places/IMG_2158.thumb.jpg" width="150" height="113" 
  border="0" /></a>
  <p>I just came back from a short trip to Southern California and Nevada. I noticed I visited Death Valley
  <a href="http://www.x180.net/Blog/2002/Dec/29#Social/Travel/PanamintDeathValley">in the same day</a> as 
  <a href="http://www.x180.net/Blog">James Duncan Davidson</a>, although he was four hours earlier than me.
  It turns out this was perhaps better for me, we had a gorgeous day, very sunny and warm.</p>
  <p>Other places I visited were the <a href="http://www.huntington.org/">Huntington Library, Art Collections 
  and Botanical Gardens</a>. The gardens feature an incredible collection of <a 
  href="http://www.huntington.org/BotanicalDiv/DesertGard.html">cacti</a> (plural form of cactus), with over 
  5000 species from all over the world.</p>
<p>We also hiked at Calico Tanks in <a href="http://www.americansouthwest.net/nevada/red_rock_canyon/nca.html">Red 
  Rocks State Park in Nevada</a>, just 10 miles west of Las Vegas. My son, who's only 3 1/2 years old, did an 
  incredible job 
  hiking this not-so-easy trail.</p>
...]]></description>
<link>http://www.webweavertech.com/ovidiu/weblog/archives/000130.html</link>
</item>

Now, what should be the good practice?

Oh BTW, blame MozBlog on the lost blog entry. Apparently, it overwrote the previous one instead of creating a new one. Bummer.

Posted by stevenn at January 3, 2003 08:20 AM ()
Comments

Mishka rules !

Posted by: Mishka at September 23, 2003 06:00 PM