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
ParameterDescription
namespaceURINamespace URI.
qualifiedNameAttribute qualified name.
valueAttribute value.
Throws
  • DOMException if the attribute cannot be set.
Example
element.setAttributeNS(null, "id", "42")