> When you serialize the document out to XML syntax, it is the serializer's
> responsibility to recognize this situation and automagically create any
> namespace declaration attributes which may be required.
>
> So if anything, this is easier for you than it would be using the old
> calls.

But in that case, the serializer will have to be aware of the hierarchy -
once the xmlns
attribute has been added to any element (A), it does not need to be added to
any child elements
of A. If it becomes the responsibility of the serializer and then the
serializer's job is no longer a
trivial task of walking the tree and generating XML, it has to now maintain
a list of all
namespaces and generate the appropriate 'xmlns' attributes at the proper
points.

The code that I currently have uses the NS API, but adds the 'xmlns' attr
anyway
to relevant elements. This is more convenient since the code that creates
the DOM
knows at each point whether an element will require the 'xmlns' attribute or
not.
Is this the wrong approach?

Regards,

Keyur


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

Reply via email to