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

- 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)