Search Results
DOMNamedNodeMap::count — Get number of nodes in the map DOMNamedNodeMap::getIterator — Retrieve an external iterator DOMNamedNodeMap::getNamedItem — Retrieves a node specified by name DOMNamedNodeMap::getNamedItemNS — Retrieves a node specified by local name and namespace URI DOMNamedNodeMap::item — Retrieves a node specified by index
Feb 19, 2020 · The DOMNamedNodeMap::getNamedItemNS () function is an inbuilt function in PHP which is used to retrieve a node with a specific local name and namespace URI. This function can be used to get the value of a attribute from a specific namespace.
- Overview
- Syntax
- Browser compatibility
The getNamedItemNS() method of the NamedNodeMap interface returns the Attr corresponding to the given local name in the given namespace, or null if there is no corresponding attribute.
Parameters
namespace A string with the namespace URI of the desired attribute.localName A string with the localName of the desired attribute.
Return value
An Attr corresponding to the namespace and local name given in parameters, or null if none has been found.
BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
DOM NamedNodeMap getNamedItemNS Method - Learn how to use the getNamedItemNS method of the DOM NamedNodeMap interface to retrieve a named node by its namespace and local name.
The NamedNodeMap object The nodes in the NamedNodeMap can be accessed through their name. The NamedNodeMap keeps itself up-to-date. If an element is deleted or added, in the node list or the XML document, the list is automatically updated. Note: In a named node map, the nodes are not returned in any particular order. NamedNodeMap Object Properties
See also MSDN - getNamedItem Method MDC - NamedNodeMap W3C - NamedNodeMap.getNamedItem () DOM 2 Core getNamedItemNS () method
People also ask
What is a namednodemap object?
How do I access the nodes in a namednodemap?
What does getnameditemns() do?
getNamedItemNS (java.lang.String namespaceURI, java.lang.String localName) Retrieves a node specified by local name and namespace URI.
