remove namespace from element name

hello,

which is the most efficient way to remove the namespace from the name of all the elements of a dom document ?

eg:

...

<ns1:mytag>aaa</ns1:mytag> should become <mytag>aaa</mytag>

is it possible to have an example in java ?

thanks

roberto

[316 byte] By [rmaronia] at [2007-10-3 11:46:57]
# 1
Personally I would write an XSLT to do that. Just modify the identity transformation to write out elements with no namespace prefix.
DrClapa at 2007-7-15 14:19:48 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...