NamedNodeMap Class

NamedNodeMap class

Represents collections of attributes that can be accessed by name.

public class NamedNodeMap : DOMObject, IDisposable, IEnumerable<Attr>

Properties

NameDescription
getItem Returns the index-th item in the map. If index is greater than or equal to the number of nodes in this map, this returns null. (2 indexers)
getLength The number of nodes in this map.

Methods

NameDescription
getEnumerator()Returns an enumerator that iterates through the collection.
getNamedItem(String)Retrieves a node specified by name.
getNamedItemNS(String, String)Retrieves a node specified by local name and package URI.
getPlatformType()This method is used to retrieve the ECMAScript object .
removeNamedItem(String)Removes a node specified by name.
removeNamedItemNS(String, String)Removes a node specified by local name and package URI.
setNamedItem(Attr)Adds a node using its nodeName attribute. If a node with that name is already present in this map, it is replaced by the new one. Replacing a node by itself has no effect.
setNamedItemNS(Attr)Adds a node using its packageURI and localName. If a node with that package URI and that local name is already present in this map, it is replaced by the new one. Replacing a node by itself has no effect.

See Also