/// <summary> /// This method searches the child nodes for nodes with the /// name passed. The method returns an array containing /// any such nodes found. /// </summary> /// <param name="name">The desired node name.</param> public XmlNodeArray FindChildren(string name) { var list = new XmlNodeArray(); for (int i = 0; i < children.Count; i++) { if (children[i].Name == name) { list.Add(children[i]); } } return(list); }
/// <summary> /// This method appends the node passed to the set of child nodes. Note that ownership of /// the node will pass to this node. /// </summary> /// <param name="node">The node to add.</param> public void AddChild(XmlNode node) { children.Add(node); }