Hi,
I was validation the XML document by using the XmlValidationReader object
and everything was OK.
As I was notified by VS that this class is obsolete, I changed the code and
used XmlReader with the XmlReaderSettings class.
My question is, why I have to set Schemas.Add(...,"MyDoc.xsd"), if the link
to the XSD document is inside the XML document
xsi:noNamespaceSchemaLocation="MyDoc.xsd" .
Is tehre any other way?
Thanks,
Lubomir
Lubomir - 30 Aug 2007 01:00 GMT
Hi,
I found solution in the mentime: I have to set this flag:
settings.ValidationFlags = XmlShcemaValidationFlags.ProcessSchemaLocation;
from now the XSD shema is located accroding the address in the XML document.
Regards,
Lubomir
> Hi,
>
[quoted text clipped - 12 lines]
> Thanks,
> Lubomir