org.w3c.dom.Element.getAttributeNS
method

    public getAttributeNS(namespaceURI as String, localName as String) as String throws DOMException

Description

Returns an attribute value by namespace URI and local name.

Parameters

- namespaceURI Namespace URI.
- localName Attribute local name.

Returns

Attribute value, or empty string when absent.

Throws

- DOMException if lookup fails.

Example

    value = element.getAttributeNS(null, "id")