System.Xml.XmlNamedNodeMap

A collection of named nodes that can be traversed.

Overview

The XmlNamedNodeMap class represents a collection of named nodes. It's typically used to represent the child nodes of an element in an XML document. You can traverse the XmlNamedNodeMap to access its children, and modify them.

Properties

Methods

Example

using System.Xml; // ... XmlDocument doc = new XmlDocument(); XmlNode root = doc.CreateElement("root"); XmlNode node1 = doc.CreateElement("child1"); XmlNode node2 = doc.CreateElement("child2"); XmlNode node3 = doc.CreateElement("child3"); XmlNamedNodeMap namedNodes = root.OwnerDocument.CreateXmlNamedNodeMap(root); namedNodes.Add(node1); namedNodes.Add(node2); namedNodes.Add(node3);

Related Classes