+2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XsdValidatingReader.cs : when ValidationType is None, it does not
+ load external schemas. Fixed bug #79924.
+
2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaValidatingReader.cs : dispatch validation events from
+2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlReaderSettingsTests.cs : added test for bug #79224; it does not
+ load external schemas when validation mode is none.
+
2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
* XmlReaderSettingsTests.cs : added validation event handler test
//\r
using System;\r
using System.IO;\r
+using System.Net;\r
using System.Xml;\r
using System.Xml.Schema;\r
using NUnit.Framework;\r
while (!xvr.EOF)\r
xvr.Read ();\r
}\r
+\r
+ class XmlErrorResolver : XmlResolver\r
+ {\r
+ public override ICredentials Credentials {\r
+ set { }\r
+ }\r
+\r
+ public override object GetEntity (Uri uri, string role, Type type)\r
+ {\r
+ throw new Exception ();\r
+ }\r
+ }\r
+\r
+ [Test] // bug #79924\r
+ public void ValidationTypeNoneIgnoreSchemaLocations ()\r
+ {\r
+ string xml = "<project xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='nosuchschema.xsd'/>";\r
+ XmlValidatingReader vr = new XmlValidatingReader (\r
+ new XmlTextReader (new StringReader (xml)));\r
+ vr.ValidationType = ValidationType.None;\r
+ vr.XmlResolver = new XmlErrorResolver ();\r
+ while (!vr.EOF)\r
+ vr.Read ();\r
+ }\r
}\r
}\r