Hi Stefan, This does not seem to work, instead it is changing the local name but leaves the namespace alone. I have attached an example for you to look at. Thanks, Noah On 28/05/06, Stefan Behnel <behnel_ml@gkec.informatik.tu-darmstadt.de> wrote:
Hi Noah,
Noah Slater wrote:
Say I have the following document:
<box xmlns="http://example.com/box" xmlns:foo="http://example.com/foo"> <foo:bar>baz></foo:bar> </box>
After I have parsed it into an element tree, how do I change it in a fool proof manner to loose the root namespace so it becomes:
<box xmlns:foo="http://example.com/foo"> <foo:bar>baz></foo:bar> </box>
Have you tried setting the tag name to the local name (without namespace)?
Stefan
-- "Creativity can be a social contribution, but only in so far as society is free to use the results." - R. Stallman