klyn.io.xml.dom.DOMDocument.getElementsByTagNameNS
method

    public getElementsByTagNameNS(namespaceURI as String, localName as String) as DOMNodeList throws DOMException:

Description

Returns document descendant elements matching a namespace URI and local name.

Parameters

Parameter | Description
--- | ---
`namespaceURI` | Namespace URI to match, or `*` for any namespace.
`localName` | Local name to match, or `*` for any local name.

Returns

Matching elements as a DOM node list and Klyn list.

Throws

- DOMException if the DOM query fails.

Example

    document = DOMParser().parseFromString("<root xmlns:x=\"urn:demo\"><x:item/></root>")
    items = document.getElementsByTagNameNS("urn:demo", "item")
    print(items.item(0).tagName)