Răsfoiți Sursa

2004-11-17 Atsushi Enomoto <[email protected]>

	* XmlSchemaSet.cs : don't set TargetNamespace = "".



svn path=/trunk/mcs/; revision=36203
Atsushi Eno 21 ani în urmă
părinte
comite
b1bf46a9d4

+ 8 - 0
mcs/class/System.XML/System.Xml.Schema/ChangeLog

@@ -1,3 +1,11 @@
+2004-11-17  Atsushi Enomoto <[email protected]>
+
+	* XmlSchemaSet.cs : don't set TargetNamespace = "".
+
+2004-11-17  Atsushi Enomoto <[email protected]>
+
+	* XmlSchemaInferenceDesign.txt : added (incomplete though.)
+
 2004-11-17  Atsushi Enomoto <[email protected]>
 
 	* XmlSchemaValidationException.cs : added.

+ 2 - 1
mcs/class/System.XML/System.Xml.Schema/XmlSchemaSet.cs

@@ -151,7 +151,8 @@ namespace System.Xml.Schema
 		public XmlSchema Add (string targetNamespace, XmlReader reader)
 		{
 			XmlSchema schema = XmlSchema.Read (reader, handler);
-			if (targetNamespace != null)
+			if (targetNamespace != null
+				&& targetNamespace.Length > 0)
 				schema.TargetNamespace = targetNamespace;
 			Add (schema);
 			return schema;