Start Net xml validating reader

Net xml validating reader

You need one schema and two XML files to validate against the schema.

After setting the Validation Type property, the Schema's property and Validation Event Handler of the Xml Reader Settings object, we are ready to create a validating Xml Reader.

Create an Xml Reader that reads the file selected by the user from the txtfilename Text Box and validates it against the schema by calling the read method inside a whileloop.

This property sets the schema(s) used to validate the document read by the Xml Reader.