Hi,

>> If this was correct behaviour, I would expect xmlns attrs be removed
>> from the attribute list of the DOMDocument's root element by the
>> parser, when parsing an xml document. But my observation is that all
>> attributes (incl. xmlns) appear there after parsing. Or did I miss
>> setting a property referring to this?
>
> Yes that would seem to be reasonable behavior :) However it is not
> actual behavior. Namespaces were added on to XML after the fact. Some
> people would consider them somewhat of a hack :) There are reasons as
> to why this is the best behavior - 

I didn't mention the parsing behaviour, but the document creation 
behaviour (and only argued with the above statement). My preferred 
solution would perhaps be to add the xmlns attribute (is this the only 
one?) initially to the attributes of the document root node, if a 
namespace parameter was given. Then the logical state of a newly 
created DOMDocument would match the logigal state of a parsed 
DOMDocument, for consistency reason.

> its a bit off topic for this list

(sorry for the noise)

Regards,
                        Axel

-- 
Humboldt-University, Berlin
Institute for Computer Science
Signal-Processing and Pattern-Recognition
Dipl.-Inf. Axel Weiss
Rudower Chaussee 25
D 12489 Berlin-Adlershof
+49-30-2093-3050
** www.freesp.de **

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

Reply via email to