From: <bo...@us...> - 2010-08-10 16:00:46
|
Revision: 420 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=420&view=rev Author: bodewig Date: 2010-08-10 16:00:40 +0000 (Tue, 10 Aug 2010) Log Message: ----------- OK, this *resolver* isn't consulted on Mono either, maybe the pne of Schemas 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 15:51:36 UTC (rev 419) +++ trunk/xmlunit/src/main/net-core/validation/Validator.cs 2010-08-10 16:00:40 UTC (rev 420) @@ -101,6 +101,7 @@ 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); @@ -109,7 +110,6 @@ } List<ValidationProblem> problems = new List<ValidationProblem>(); settings.ValidationEventHandler += CollectProblems(problems); - settings.XmlResolver = new ThrowingResolver(); using (XmlReader r = XmlReader.Create(instance.Reader, settings)) { while (r.Read()) ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |