Document.IsValid
Method: IsValid (strError as Variant) as Boolean
Return Value
True if the document is valid, false if not. To call IsValid(), the application GUI must be visible. (If you wish to validate without the GUI being visible, please use Altova RaptorXML Server.)
Description
IsValid validates the document against its associated schema or DTD. strError gives you the same error message as when you validate the file within the GUI.
Errors
1400 | The object is no longer valid. | |
1407 | Invalid parameter or invalid address for the return parameter was specified. | |
1408 | Unable to validate file. |