Skip to content

Commit

Permalink
2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Browse files Browse the repository at this point in the history
	* XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".

svn path=/trunk/mcs/; revision=20592
  • Loading branch information
atsushieno committed Nov 28, 2003
1 parent bcc961c commit d0d1b1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mcs/class/System.XML/System.Xml/ChangeLog
@@ -1,3 +1,7 @@
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()
Expand Down
2 changes: 2 additions & 0 deletions mcs/class/System.XML/System.Xml/XmlAttribute.cs
Expand Up @@ -161,6 +161,8 @@ public class XmlAttribute : XmlNode
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;
}
Expand Down

0 comments on commit d0d1b1e

Please sign in to comment.