Dispose the object.
It releases the managed resource and unregisters it from FinalizationRegistry. This ensures that the release of the managed resource doesn’t have to wait until the object is garbage collected.
To avoid resource leaks,
explicitly call the Dispose
method or use the using
declaration to declare the object.
Validate the XmlDocument.
The XmlDocument to be validated.
an XmlValidateError if the document is invalid;
an XmlError or XmlValidateError if there's an error, such as validating a document that's already disposed, etc.
Static
fromCreate an XsdValidator instance from an XmlDocument object.
The XSD schema, parsed in to an XmlDocument object.
an XmlError or XmlValidateError if something goes wrong.
The XSD schema validator.
Note: This validator must to be disposed explicitly.