NamedNodeMap Object
The getNamedItem() method returns the specified node.
| Parameter | Description |
|---|---|
| nodename | The name of the node to retrieve |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc(), loops through the <book> elements and prints the values of the category attributes:
The output of the code above will be:
getNamedItem() - Change an item's value
NamedNodeMap Object
Your message has been sent to W3Schools.