org.w3c.dom.Element.getAttributeNodeNS
method
public getAttributeNodeNS(namespaceURI as String, localName as String) as Attr throws DOMException
Description

Returns a namespace-aware attribute node.

Parameters
ParameterDescription
namespaceURINamespace URI.
localNameAttribute local name.
Returns

Attribute node, or null.

Throws
  • DOMException if lookup fails.
Example
attr = element.getAttributeNodeNS(null, "id")