@@ -1,3 +1,7 @@
+2004-02-03 Alon Gazit <[email protected]>
+ * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
+ instead of throwing ArgumentOutOfRangeException.
+
2004-02-03 Atsushi Enomoto <[email protected]>
* XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
@@ -56,7 +56,7 @@ namespace System.Xml
public virtual XmlNode Item (int index)
{
- if (index < 0 || index > nodeList.Count)
+ if (index < 0 || index >= nodeList.Count)
return null;
else
return (XmlNode) nodeList [index];