Re: [xml] libxml2 and default namespaces



Paul Boddie wrote:
Perhaps the real issue is whether a namespace set on an element whose qualified name is unprefixed can be discarded in the serialisation. That I may have declared the namespace, but since no prefix is specified I haven't (according to some interpretations) actually used it, and that the information can be legitimately discarded. Such reasoning sounds dubious to me, but it wouldn't surprise me if such loopholes existed in the specifications.
My last comment I promise :)

How can you discard it? It is now the default namespace. The element now belongs to this namespace. Discarding it now means the element is not in the namespace. At I said before, discarding it means the serialized version no longer means the same as the one being built.
Rob




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]