Dispose the object.
It releases the managed resource and unregisters them from FinalizationRegistry. So the release of the managed resource won't need to wait until this object is garbage collected.
This needs to be called explicitly to avoid resource leak,
or declare the object with using
declaration.
Validate the XmlDocument.
the XmlDocument to be validated.
XmlValidateError if the document is invalid;
XmlError or XmlValidateError if something wrong, such as validating a document already disposed, etc.
Static
fromCreate an XsdValidator from an XmlDocument object.
The XSD schema, parsed in to an XmlDocument object.
XmlError or XmlValidateError if something wrong.
XSD schema validator.
NOTE: This validator needs to be disposed explicitly.