in reply to removing namespaces with XML::Twig?

"a" is not a namespace, it's a prefix.

Are you trying to strip the prefix without changing the element's namespace so

<a:houses xmlns:a="..."> <a:house> ... </a:house> ... </a:houses>

becomes

<houses xmlns="..."> <house> ... </house> ... </houses>

Or are you trying to change the namespace of the element to nothing and thus stripping the prefix so

<a:houses xmlns:a="..."> <a:house> ... </a:house> ... </a:houses>

becomes

<houses> <house> ... </house> ... </houses>

(Either way, can't help you.)

Replies are listed 'Best First'.
Re^2: removing namespaces with XML::Twig?
by Anonymous Monk on Jun 11, 2012 at 23:43 UTC
    Thanks for the correction. I'm wanting to strip off the prefix.
      The prefix gets stripped off in both versions, so that doesn't answer anything.