XML DOM - NamedNodeMap object

## XML DOM Tutorial

DOM HOME DOM Introduction DOM Nodes DOM Node Tree DOM Parser DOM Load Function DOM Methods DOM Accessing DOM Node Info DOM Node List DOM Traversing DOM Browsers DOM Navigating

## Manipulate Nodes

DOM Get Values DOM Change Nodes DOM Remove Nodes DOM Replace Nodes DOM Create Nodes DOM Add Nodes DOM Clone Nodes DOM XMLHttpRequest

## XML DOM Reference

DOM Node Types DOM Node DOM NodeList DOM NamedNodeMap DOM Document DOM DocumentImpl DOM DocumentType DOM ProcessingInstr DOM Element DOM Attribute DOM Text DOM CDATA DOM Comment DOM XMLHttpRequest DOM ParseError Obj DOM Parser Errors
DOM Summary

## XML DOM Examples

DOM Examples DOM Validator

# XML DOM - The NamedNodeMap Object

« Previous
Next Chapter »

The NamedNodeMap object represents an unordered list of nodes.

## 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

Property | Description
--- | ---
length | Returns the number of nodes in the list

## NamedNodeMap Object Methods

Method | Description
--- | ---
getNamedItem() | Returns the specified node (by name)
getNamedItemNS() | Returns the specified node (by name and namespace)
item() | Returns the node at the specified index
removeNamedItem() | Removes the specified node (by name)
removeNamedItemNS() | Removes the specified node (by name and namespace)
setNamedItem() | Sets the specified node (by name)
setNamedItemNS() | Sets the specified node (by name and namespace)

« Previous
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE