<PackageReference Include="System.Xml.XmlDocument" Version="4.0.1-beta-23409" />

XmlNamedNodeMap

public class XmlNamedNodeMap : IEnumerable
Represents a collection of nodes that can be accessed by name or index.
public virtual int Count { get; }

Gets the number of nodes in the XmlNamedNodeMap.

public virtual IEnumerator GetEnumerator()

Provides support for the "foreach" style iteration over the collection of nodes in the XmlNamedNodeMap.

public virtual XmlNode GetNamedItem(string name)

Retrieves an XmlNode specified by name.

public virtual XmlNode GetNamedItem(string localName, string namespaceURI)

Retrieves a node with the matching LocalName and NamespaceURI.

public virtual XmlNode Item(int index)

Retrieves the node at the specified index in the XmlNamedNodeMap.

public virtual XmlNode RemoveNamedItem(string name)

Removes the node from the XmlNamedNodeMap.

public virtual XmlNode RemoveNamedItem(string localName, string namespaceURI)

Removes a node with the matching LocalName and NamespaceURI.

public virtual XmlNode SetNamedItem(XmlNode node)

Adds an XmlNode using its Name property.