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 | |
by ikegami (Patriarch) on Jun 12, 2012 at 20:47 UTC |