The DomDocument class / xml.DomDocument methods |
Performs a DTD or XML Schema validation for a DomDocument object.
validate() RETURNING result INTEGER
Performs a DTD or XML Schema validation for this DomDocument object. Returns the number of validation errors, or zero if there are none.
See setFeature() to specify what kind of validation to do.
See getErrorsCount() and getErrorDescription() to retrieve error messages related to validation errors.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.