I've got a DOMNode object that has some attributes. $Node->attributes is a DOMNamedNodeMap, which has no methods for removing one of the entries in the map. The DOMNode class also has no methods for removing attributes from an element. I've looked through a number of the other related classes and none of them seem to provide a mechanism for removing an attribute node from its parent. (DOMNode::removeChild doesn't work; it throws a "Not found error" if I pass a DOMAttr object to it.)
Aside from constructing a new DOMNamedNodeMap and adding all the attributes to it except the one I don't want... any ideas? Thanks.