Author: atsushi
Date: 2005-03-08 01:06:59 -0500 (Tue, 08 Mar 2005)
New Revision: 41546

Modified:
   trunk/mcs/class/System.XML/System.Xml/ChangeLog
   trunk/mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs
   trunk/mcs/class/System.XML/System.Xml/XmlTextWriter.cs
Log:
2005-03-08  Atsushi Enomoto <[EMAIL PROTECTED]>

        * 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.



Modified: trunk/mcs/class/System.XML/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/ChangeLog     2005-03-08 04:40:02 UTC 
(rev 41545)
+++ trunk/mcs/class/System.XML/System.Xml/ChangeLog     2005-03-08 06:06:59 UTC 
(rev 41546)
@@ -1,3 +1,11 @@
+2005-03-08  Atsushi Enomoto <[EMAIL PROTECTED]>
+
+       * 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.
+
 2005-03-07  Atsushi Enomoto <[EMAIL PROTECTED]>
 
        * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in

Modified: trunk/mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs        
2005-03-08 04:40:02 UTC (rev 41545)
+++ trunk/mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs        
2005-03-08 06:06:59 UTC (rev 41546)
@@ -172,7 +172,7 @@
                {
                        string message = null;
                        if (prefix == PrefixXml && uri != XmlnsXml)
-                               message = String.Format ("Prefix \"xml\" is 
only allowed to the fixed uri \"{0}\"", uri);
+                               message = String.Format ("Prefix \"xml\" can 
only be bound to the fixed namespace URI \"{0}\". \"{1}\" is invalid.", 
XmlnsXml, uri);
                        else if (message == null && prefix == "xmlns")
                                message = "Declaring prefix named \"xmlns\" is 
not allowed to any namespace.";
                        else if (message == null && uri == XmlnsXmlns)

Modified: trunk/mcs/class/System.XML/System.Xml/XmlTextWriter.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlTextWriter.cs      2005-03-08 
04:40:02 UTC (rev 41545)
+++ trunk/mcs/class/System.XML/System.Xml/XmlTextWriter.cs      2005-03-08 
06:06:59 UTC (rev 41546)
@@ -745,8 +745,6 @@
                                        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.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to