klyn.io.xml.dom.DomElement.getElementsByTagName
method

    public getElementsByTagName(name as String) as DomNodeList:

Description

Returns descendant elements matching a tag name.

Parameters

- name Tag name to match, or `*` for all descendants.

Returns

Matching elements as a DOM node list and Klyn list.

Example

    document = DOMParser().parseFromString("<root><item/></root>")
    items = document.documentElement.getElementsByTagName("item")
    print(items.length)