DOMElement::setAttributeNodeNS
  新しい属性ノードを要素に追加する
  
 
  説明
  
   public DOMAttrnullfalse DOMElement::setAttributeNodeNS(DOMAttr $attr)
  
  
 
 
  戻り値
  
   属性が置換された場合は置換前のノード、古い属性がない場合は null
   を返します。
   DOM_WRONG_DOCUMENT_ERR エラーが発生した場合、
   かつ strictErrorChecking が false の場合には、false を返します。
  
  
 
  エラー / 例外
  
   
    
     - 
DOM_WRONG_DOCUMENT_ERR
- 
      
       attrが、要素とは異なるドキュメントに存在する場合に発生します。
 
 
 
  参考
  
   
    -  DOMElement::hasAttributeNS
-  DOMElement::getAttributeNodeNS
-  DOMElement::removeAttributeNode