News for hackers. Stuff that matters.
Re:What's frustrating with XML? by masklinn on Sunday August 22, 2010 @12:03PM (#1624784)
> But I should clarify, I am a huge proponent of namespaces -- I think they're great

They're nice, but generally misimplemented, misunderstood and misused.

> I'd just prefer them to be declared at the start of the document.

I'm not sure why. It's nicer when you have to read the document yourself for sure (but then again, XML is rarely actually nice to read), but when mechanically processing it it shouldn't be relevant: just use each node as a (ns, name) pair where ns is the namespace's URI (not its alias) and name is the localname. In that case, what does early declaration bring to the equation?

There are no comments on this comment yet.