(PHP 5, PHP 7)
Adds new attribute node to element
public DOMAttr DOMElement::setAttributeNodeNS ( DOMAttr $attr )
Adds new attribute node attr
to element.
Parameters:
attr
The attribute node.
Returns:
Returns the old node if the attribute has been replaced.
Exception:
Raised if the node is readonly.
See also:
DOMElement::hasAttributeNS() -
Please login to continue.