[Mono-devel-list] XmlValidationReader: Mono and MS.NET difference

Atsushi Eno atsushi at ximian.com
Thu Jul 28 10:03:58 EDT 2005


Vorobiev Maksim wrote:
> Good day.
> There is the difference in Mono and MS.NET behavior. The situations is
> the next:
> 1.XmlValidationReader reads xml-file, that reference the scheme.
> 2.schemeLocation contains path to scheme, but in this path scheme does
> NOT present.
> 3. Before call to Read(), correct scheme location added manually via
> call: xmlValidReader.Schemas.Add( xmlSchemas );
> 4. Read() method executed.
> MS.NET-implementation doesn't throws exception in this case: it finds
> needed scheme in manualy added location. But Mono XmlValidationReader
> throws exception "XmlSchema error: Could not resolve schema location
> URI: /home/user/schema.xsd XML  Line 2, Position 2.". The same error
> occurs with MS, if we do not add correct scheme location manually.
> Example of code, that shows this situation attached to message.
> The question is: should it be in Mono such as it's in MS.NET? I think,
> that this is the correct way, as MS does. And the another one: will it
> be fixed by someone?

Thanks - it is interesting, since schema resolution is an
implementation matter, it won't break XML Schema specification
if we change the behavior to be euivalent to MS.NET.

So this (kind of) bug is fixed in svn.

Atsushi Eno

More information about the Mono-devel-list mailing list