Object: NamedNodeMap
The NamedNodeMap object represents collections of nodes that can be accessed by name.
You can access an individual node within a collection by its index position using NamedNodeMap.item(), by its name or id attribute using NamedNodeMap.getNamedItem(), or you can index the object directly. For example, if you create an instance of a NamedNodeMap object called myNamedNodeMap, then specifying
NamedNodeMap properties
NamedNodeMap methods
|
Method name |
Description |
Support level |
Availability |
|---|---|---|---|
|
Retrieves the node with the given name. |
DOM 2 Core |
4.6 or later |
|
|
Retrieves the node with the given name and namespace URI. |
DOM 2 Core |
4.6 or later |
|
|
Returns the node at the given index in the map. |
DOM 2 Core |
4.6 or later |
|
|
Removes the node with the given name from the map. |
DOM 2 Core |
4.6 or later |
|
|
Removes the node with the given name and namespace URI from the map. |
DOM 2 Core |
4.6 or later |
|
|
Adds a node using the Node.nodeName attribute. |
DOM 2 Core |
4.6 or later |
|
|
Adds a node using the Node.nodeName attribute and the namespace URI. |
DOM 2 Core |
4.6 or later |