Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Coleman <tim@mono-cvs.ximian.com>2002-08-03 21:17:05 +0400
committerTim Coleman <tim@mono-cvs.ximian.com>2002-08-03 21:17:05 +0400
commit46ba39cb3dc743482a81d5b967c5dfa76219bbc2 (patch)
tree3e230bf1b73114b068c8271e144f8d8c9b738f91 /mcs/class/System.XML/System.Xml
parent8608fd450b09fc46ac30f3a7132781af28548bd0 (diff)
2002-08-03 Tim Coleman <tim@timcoleman.com>
* XmlNamespaceManager.cs: .Net allows the empty namespace to be redefined at a later point, but the current implementation did not. This fixes a hashtable conflict. svn path=/trunk/mcs/; revision=6379
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r--mcs/class/System.XML/System.Xml/ChangeLog6
-rw-r--r--mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs5
2 files changed, 10 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog
index b54c25751b5..f75061e59cd 100644
--- a/mcs/class/System.XML/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/System.Xml/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-03 Tim Coleman <tim@timcoleman.com>
+ * XmlNamespaceManager.cs:
+ .Net allows the empty namespace to be redefined
+ at a later point, but the current implementation
+ did not. This fixes a hashtable conflict.
+
2002-07-26 Tim Coleman <tim@timcoleman.com>
* XmlTextWriter.cs:
When given a textwriter, check to see if it has a
diff --git a/mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs b/mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs
index 56dcaf5d88c..745a1f5cca4 100644
--- a/mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs
+++ b/mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs
@@ -65,7 +65,10 @@ namespace System.Xml
if (currentScope.Namespaces == null)
currentScope.Namespaces = new Hashtable ();
- currentScope.Namespaces.Add (nameTable.Add (prefix), nameTable.Add (uri));
+ if (prefix == String.Empty)
+ currentScope.Namespaces [prefix] = nameTable.Add (uri);
+ else
+ currentScope.Namespaces.Add (nameTable.Add (prefix), nameTable.Add (uri));
}
[MonoTODO]