Merge pull request #2545 from ermshiperete/Xamarin-24974
[mono.git] / mcs / class / System / System.Configuration / ConfigHelper.cs
index 8fa7ce06e6ffe3a14ee9381897a655e723353119..89adbe2589101044f97e5213389bd42f7dd8bb65 100644 (file)
@@ -138,8 +138,11 @@ namespace System.Configuration
                                                            string nameAtt,
                                                            string valueAtt)
                {
-                       if (region.Attributes != null && region.Attributes.Count != 0)
-                               throw new ConfigurationException ("Unknown attribute", region);
+                       if (region.Attributes != null && region.Attributes.Count != 0) {
+                               if (region.Attributes.Count != 1 || region.Attributes[0].Name != "xmlns") {
+                                       throw new ConfigurationException ("Unknown attribute", region);
+                               }
+                       }
 
                        XmlNode keyNode;
                        XmlNode valueNode;