On Apr 22, 2004, at 5:50 AM, Gareth Reakes wrote:


Namespace attributes such as xmlns:foo only have an effect at parse time.
You can manipulate them as much as you want after this an it will have no
effect what so ever on the namespace of any elements or attributes. The
only difference will occur during serialization. Then, if an element is
found that is in a namespace, an algorithm is used to see what prefix
should be used and if a namespace attr should be created.

How does it possibly know what prefix to use? Besides, the documentation seems to indicate that a prefix should be supplied as part of the qualifiedName (since, technically, that would include the namespace, that seems logical to me). The documentation says: The 'NAMESPACE_ERR' exception is thrown "...if the qualifiedName has a prefix and the namespaceURI is null", which seems to indicate that prefixes are expected in the qualifiedName field.


--
Nick


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



Reply via email to