Re: 3.6. The root element

Ben Boyle wrote:
> This seems fine to me.
> Unsure about the second note: doesn't xmlns="" put an element into the
> "null" namespace in XML?

Yes, but that's not what the note means.  It says:

   In XML, an xmlns attribute is part of the namespace declaration
   mechanism, and an element cannot actually have an xmlns attribute
   in the null namespace specified.

It's referring to the namespace of the attribute itself, not the 
namespace of the elemement.  In DOM implementations, the xmlns attribute 
is in the namespace.

Lachlan Hunt

Received on Monday, 30 July 2007 12:57:06 UTC