throw new DomEx(DomEx.NAMESPACE_ERR,
throw new DomDOMException(DOMException.NAMESPACE_ERR,
  public void setAttributeNS(String uri, String aname, String value)  {    if (("xmlns".equals (aname) || aname.startsWith ("xmlns:"))        && !XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals (uri))      {        throw new DomEx(DomEx.NAMESPACE_ERR,                        "setting xmlns attribute to illegal value", this, 0);      }    Attr attr = getAttributeNodeNS(uri, aname);    if (attr != null)      {        attr.setNodeValue(value);        return;      }    attr = owner.createAttributeNS(uri, aname);    attr.setNodeValue(value);    setAttributeNodeNS(attr);  }