|There's more than one way to do things|
Re: perl substitute..try thisby stylechief (Sexton)
|on Nov 07, 2013 at 00:17 UTC||Need Help??|
It looks like you want to remove namespaces, and don't want to mess with validating the XML with a DTD
setAttributeNS$node->setAttributeNS( $nsURI, $aname, $avalue );
Namespace-aware version of setAttribute, where $nsURI is a namespace URI, $aname is a qualified name, and $avalue is the value. The namespace URI may be null (empty or undefined) in order to create an attribute which has no namespace.
removeAttribute$node->removeAttribute( $aname ); The method removes the attribute $aname from the node's attribute list, if the attribute can be found.