* XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
svn path=/trunk/mcs/; revision=20592
+2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
+
+ * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
+
2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
* XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
throw new XmlException ("This node is readonly.");
if (!XmlChar.IsNCName (value))
throw new ArgumentException ("Specified name is not a valid NCName: " + value);
+ if (prefix == "xmlns" && value != "xmlns")
+ throw new ArgumentException ("Cannot bind to the reserved namespace.");
prefix = value;
}