## Document.GetElementsByTagNameNS method

Returns a list of elements with the given tag name belonging to the given namespace. The complete document is searched, including the root node.

```csharp
public HTMLCollection GetElementsByTagNameNS(string namespaceURI, string localName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| namespaceURI | String | The namespace URI of elements to look for. |
| localName | String | Either the local name of elements to look for or the special value *, which matches all elements. |

### Return Value

A live [`NodeList`](../../../aspose.html.collections/nodelist/) of found elements in the order they appear in the tree.

## Remarks

Refer to official [spec](https://dom.spec.whatwg.org/#dom-document-getelementsbytagnamens).

### See Also

* class [HTMLCollection](../../../aspose.html.collections/htmlcollection/)
* class [Document](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
