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

Vorobiev Maksim MVorobiev at croc.ru
Thu Jul 28 08:20:05 EDT 2005


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?
 
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050728/2a0b8535/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XmlTester.zip
Type: application/x-zip-compressed
Size: 4401 bytes
Desc: XmlTester.zip
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050728/2a0b8535/attachment.bin 


More information about the Mono-devel-list mailing list