org.w3c.dom.Document.createAttributeNS
method

    public createAttributeNS(namespaceURI as String, qualifiedName as String) as Attr throws DOMException

Description

Creates a namespace-aware attribute.

Parameters

Parameter | Description
--- | ---
`namespaceURI` | Namespace URI.
`qualifiedName` | Qualified attribute name.

Returns

New attribute.

Throws

- DOMException if the name is invalid.

Example

    attr = document.createAttributeNS(null, "id")