Aha, I've struggled with inconsistencies between
XmlValidatingReader and XML Spy for quite a while.
Finally, someone from Microsoft told me that XML Spy does
not respect W3C recommendations that much.
Here are more descrepancies:
--Unique, Key, Keyref contraint validation seems to fail
with dotnet validator. The secret was that you must
include namespace prefixes into xpath expressions in the
Schema, used to locate pieces of document.
--XmlDocument.SelectNodes() doesn't seem to work. But if
you use XmlNamespaceManager, it will...
XmlSpy validator should not be used as a reference one!
>When I try to validate this document in Visual Studio Dot
Net or in VB Dot
>Net code, I get the following error and the document will
>ERROR: Invalid 'id' attribute value - The ' ' character,
>0x20, cannot be included in a name.. An error occurred at
>This is caused by the spaces in the schema id.
>If I validate this in XMLSpy I don't get this problem.
>There are validation error's in this file but this should
not be one of
>Can anyone help.