NamedNodeMap Class

NamedNodeMap class

Represents collections of attributes that can be accessed by name.

public class NamedNodeMap : DOMObject

Properties

NameDescription
Item { get; }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)
Length { get; }The number of nodes in this map.

Methods

NameDescription
GetNamedItem(string)Retrieves a node specified by name.
GetNamedItemNS(string, string)Retrieves a node specified by local name and namespace URI.
virtual GetPlatformType()This method is used to retrieve ECMAScript object Type.
RemoveNamedItem(string)Removes a node specified by name.
RemoveNamedItemNS(string, string)Removes a node specified by local name and namespace 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 namespaceURI and localName. If a node with that namespace 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