The NamedNodeMap Interface

The NamedNodeMap interface is used for unordered collections whose contents are identified by name. In practice, this interface is used to access attributes of elements. See Table 19-5 for a summary of the NamedNodeMap interface.

Table 19-5. The NamedNodeMap interface

Name

Type

Read-only

2.0

3.0

Attribute

    

length

Long

  

Methods

    

getNamedItem

Node

   

getNamedItemNS

Node

  

removeNamedItem

Node

   

removeNamedItemNS

Node

   

setNamedItem

Node

   

setNamedItemNS

Node

  

Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.