getNamespaceURI
getNamespaceURI is a function of the Document Object Model (DOM) API that returns the namespace URI associated with a given node. It is primarily used in the context of XML namespaces to identify the namespace in which a node resides, enabling disambiguation of elements and attributes that share a local name but belong to different namespaces.
The method returns a string containing the namespace URI, or null if the node has no namespace
In practice, elements and attributes created or parsed with namespace awareness carry a non-null namespaceURI, obtained
In web browsers, the equivalent property on DOM nodes is namespaceURI, accessed directly as a property in