2 // System.Xml.XmlNamedNodeMap
5 // Jason Diamond (jason@injektilo.org)
6 // Duncan Mak (duncan@ximian.com)
8 // (C) 2002 Jason Diamond http://injektilo.org/
12 using System.Collections;
16 public class XmlNamedNodeMap : IEnumerable
18 private XmlNode parent;
19 private ArrayList nodeList;
21 internal XmlNamedNodeMap (XmlNode parent)
24 nodeList = new ArrayList ();
27 public virtual int Count {
28 get { return nodeList.Count; }
32 public virtual IEnumerator GetEnumerator ()
34 throw new NotImplementedException ();
37 public virtual XmlNode GetNamedItem (string name)
39 foreach (XmlNode node in nodeList) {
40 if (node.Name == name)
47 public virtual XmlNode GetNamedItem (string localName, string namespaceURI)
49 throw new NotImplementedException ();
52 public virtual XmlNode Item (int index)
54 if (index < 0 || index > nodeList.Count)
57 return (XmlNode) nodeList [index];
61 public virtual XmlNode RemoveNamedItem (string name)
63 throw new NotImplementedException ();
67 public virtual XmlNode RemoveNamedItem (string localName, string namespaceURI)
69 throw new NotImplementedException ();
73 public virtual XmlNode SetNamedItem (XmlNode node)