Re: Changing xmlns attribute on the fly.

> setAttribute it needed for non-namespace aware documents.

setAttribute is needed for non-namespace-aware APPLICATIONS, meaning those
written for DOM 1.0.

If your application is ns-aware (as they all should be these days), it
should be using setAttributeNS even for attributes that are not in a
namespace.

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
(http://www.ovff.org/pegasus/songs/threes-rev-11.html)

Received on Monday, 6 August 2007 16:53:18 UTC