From: <bo...@us...> - 2010-08-10 16:03:59
|
Revision: 421 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=421&view=rev Author: bodewig Date: 2010-08-10 16:03:53 +0000 (Tue, 10 Aug 2010) Log Message: ----------- revert experiment, neither resolver is consulted on Mono Modified Paths: -------------- trunk/xmlunit/src/main/net-core/validation/Validator.cs Modified: trunk/xmlunit/src/main/net-core/validation/Validator.cs =================================================================== --- trunk/xmlunit/src/main/net-core/validation/Validator.cs 2010-08-10 16:00:40 UTC (rev 420) +++ trunk/xmlunit/src/main/net-core/validation/Validator.cs 2010-08-10 16:03:53 UTC (rev 421) @@ -101,7 +101,6 @@ try { XmlSchema s = XmlSchema.Read(loc.Reader, ThrowOnError); settings.Schemas.Add(s); - settings.Schemas.XmlResolver = new ThrowingResolver(); } catch (IOException ex) { throw new XMLUnitException("Schema is not readable", ex); @@ -117,17 +116,6 @@ return new ValidationResult(problems.Count == 0, problems); } - private class ThrowingResolver : XmlResolver { - public override object GetEntity(Uri uri, string role, Type type) { - throw new Exception(string.Format("GetEntity invoked with ({0}, {1}, {2}", - uri, role, type)); - } - - public override System.Net.ICredentials Credentials { - set {} - } - } - private static readonly IDictionary<string, ValidationType> types; static Validator() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |