Name
NamedNodeMap
Synopsis
The NamedNodeMap
interface provides a mechanism used to retrieve Node
objects from a collection by name.
Although this interface exposes the same methods and attributes as
the NodeList
class, they are
not related. While it is possible to enumerate the nodes in a
NamedNodeMap
using the item( )
method and length
attribute, the nodes are not
guaranteed to be in any particular order.
Java example
// Get an element's attributes NamedNodeMap nnm = elem.getAttributes( );
Attribute
The NamedNodeMap
defines
one attribute:
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.