NamedNodeMap

NamedNodeMap class

Represents collections of attributes that can be accessed by name.

public class NamedNodeMap : IEnumerable<Attr>

Properties

Name Description
Item { get; } Gets the attribute with the specified name. (2 indexers)
Length { get; } Gets the number of attributes in the map.

Methods

Name Description
GetEnumerator() Returns an enumerator that iterates through the map.
GetNamedItem(string) Gets the attribute specified by name.
GetNamedItemNS(string, string) Gets the attribute specified by local name and namespace URI.
RemoveNamedItem(string) Removes a attribute specified by name.
RemoveNamedItemNS(string, string) Removes a attribute 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