diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-03-08 09:06:59 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-03-08 09:06:59 +0300 |
commit | 3cee4bfb341eff6c94b2f6a7c29b4a9a1f331453 (patch) | |
tree | 82d401065d95ec9ce0668f85539cbb2bec755c9d /mcs/class/System.XML/System.Xml/XmlTextWriter.cs | |
parent | b26d71e1fce35a6cbbdbdd20fd8a56ede9178953 (diff) |
2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter.cs : namespace declaration check for those which starts
with 'x' 'm' 'l' should not be done here (it might be 'declared'
though reserved).
* XmlNamespaceManager.cs : error message for "'xml' prefix for
different namespace" is incorrect.
svn path=/trunk/mcs/; revision=41546
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlTextWriter.cs')
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextWriter.cs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlTextWriter.cs b/mcs/class/System.XML/System.Xml/XmlTextWriter.cs index e3377204615..755cc7b0291 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextWriter.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextWriter.cs @@ -745,8 +745,6 @@ openElements [openElementCount - 1]).IndentingOverriden; localName = prefix; prefix = String.Empty; } - else if (localName.ToLower (CultureInfo.InvariantCulture).StartsWith ("xml")) - throw new ArgumentException ("Prefixes beginning with \"xml\" (regardless of whether the characters are uppercase, lowercase, or some combination thereof) are reserved for use by XML: " + prefix + ":" + localName); } // Note that null namespace with "xmlns" are allowed. |