getElementsByTagNameNS
getElementsByTagNameNS is a method of the Element interface in the Document Object Model (DOM) that returns a live NodeList of all descendant elements that have a specific tag name and namespace. It is used to select elements within an XML or HTML document based on both their tag name and the namespace they belong to. This is particularly useful when dealing with XML documents that use namespaces to organize elements.
The method takes two arguments: namespaceURI and localName. The namespaceURI is a string representing the namespace
The returned NodeList is live, meaning that if elements matching the criteria are added to or removed