* XmlNode.cs, XmlIteratorNodeList.cs :
Now we can enable XmlIteratorNodeList again (mcs, incorrectly
removing nodes in the node list, was fixed).
svn path=/trunk/mcs/; revision=56200
+2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlNode.cs, XmlIteratorNodeList.cs :
+ Now we can enable XmlIteratorNodeList again (mcs, incorrectly
+ removing nodes in the node list, was fixed).
+
2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
* XmlDocument.cs : in ReadNode() to consume element node, switched
*/
// anyways such code that uses
// XmlNodeList.Count already gives up
- // performance, and the effort above makes
- // little difference.
+ // performance. Also, storing things in the
+ // list causes extra memory consumption.
return iterator.Count;
}
}
if (nsmgr != null)
expr.SetContext (nsmgr);
XPathNodeIterator iter = nav.Select (expr);
+ /*
ArrayList rgNodes = new ArrayList ();
while (iter.MoveNext ())
{
rgNodes.Add (((IHasXmlNode) iter.Current).GetNode ());
}
return new XmlNodeArrayList (rgNodes);
- //return new XmlIteratorNodeList (iter);
+ */
+ return new XmlIteratorNodeList (iter);
}
public XmlNode SelectSingleNode (string xpath)