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
fromCreates a RelaxNGValidator instance from an XmlDocument.
The XmlDocument representing the RelaxNG schema
an XmlError or XmlValidateError if something goes wrong.
The RelaxNG schema validator.
Note: This validator must be disposed explicitly.