Automatic Namespace Declarations


I'm using SAX (inside the Scheme SSAX library) to parse an RSS feed (Jon Udell's actually) and he uses some dublin core tags inside his RSS feed, like so:

<dc:date>2005-06-15T09:30:39-05:00</dc:date>

Jon doesn't declare the "dc" namespace anywhere in his feed, and yet SAX still expands it to "http://purl.org/dc/elements/1.1/". How and, more importantly, why? This doesn't seem right...

Update: Jon wrote to tell me what was causing the namespace to seemingly expand without being declared. It is declared, as you can see by viewing the source, but Firefox hides namespace declarations when you view XML in the browser. There's probably a hidden variable somewhere you can set to toggle that behavior.


Please leave comments using the Hypothes.is sidebar.

Last modified: Thu Oct 10 12:47:19 2019.