Xml validation in c#
-
Hi, I am trying to validate a xml document against xsd in c#. I used the code
XmlReaderSettings settings = new XmlReaderSettings();
settings.ValidationType = ValidationType.Schema;And i get the following error. TesterSchemaValidator.settings' is a 'field' but is used like a 'type' Please help me, why i am getting this error.
-
Hi, I am trying to validate a xml document against xsd in c#. I used the code
XmlReaderSettings settings = new XmlReaderSettings();
settings.ValidationType = ValidationType.Schema;And i get the following error. TesterSchemaValidator.settings' is a 'field' but is used like a 'type' Please help me, why i am getting this error.
You're setting the
ValidationType
in the class level (outside a method).Eslam Afifi
-
You're setting the
ValidationType
in the class level (outside a method).Eslam Afifi