org.w3c.dom.Element.setAttributeNS
method
public setAttributeNS(namespaceURI as String, qualifiedName as String, value as String) as Void throws DOMException
Description

Sets or creates a namespace-aware attribute.

Parameters
  • namespaceURI Namespace URI.
  • qualifiedName Attribute qualified name.
  • value Attribute value.
Throws
  • DOMException if the attribute cannot be set.
Example
element.setAttributeNS(null, "id", "42")