Simon Fell > Its just code > xmlns strikes again

Monday, July 28, 2003

xmlns strikes again

I've been thinking about Sam's suggestion for how to provide unencoded content in my atom feed, in looking at his example, I spotted one problem, the second content entry, which is an unencoded text/html part has the html tags in the atom namespace.

<feed xmlns="http://example.com/newformat#" xmlns:ent="http://www.purl.org/NET/ENT/1.0/" version="1.0">
...
<content type="text/html" xml:lang="en-us">
      <p>Hello, <em>weblog</em> world! 2 &lt; 4!</p>
</content>
The <p> being in the default namespace of http://example.com/newformat#. Another validation on my stance that default namespaces are evil.

< 6:53 PM PDT # > [playing Saru / Greg Long Remix - Something Stronger Remix (Groove Salad: a nicely chilled plate of ambient beats and grooves. [SomaFM])]

You can't post a Comment

Sorry i got sick of comment spam, have something to say about one of my posts, post it to your own weblog.