Working as designed. The DOM spec says the namespace declaration attributes
can appear in the tree, with their own namespace URI set to point to the
namespace spec. They don't _have_ to appear, since each element or
attribute carries its own reference to the namespace URI, but they
generally do unless someone explicitly filters them out.

SAX too presents the namespace declarations as attributes, unless it is
told not to do so. And for the same reason: This makes the data stream
backward-compatable with pre-level-2 code which may have implemented its
own namespace support and needs the declarations as input.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to