xml.DomDocument.getErrorsCount

Returns the number of errors encountered during the loading, saving or validation of a XML document.

Syntax

getErrorsCount()
  RETURNS INTEGER

Usage

This method returns the number of errors encountered during the loading, saving, or the validation of a XML document.

Returns the number of errors, or zero if there are none.

Important:

This method is not part of W3C standard API.

Example error management

FOR i=1 TO doc.getErrorsCount()
  DISPLAY "[", i, "] ", doc.getErrorDescription(i)
END FOR
Displays all the errors encountered in the save, load, or validate of the doc DomDocument.

To display other errors, use the global variable status to get the error code and err_get(status) or sqlca.sqlerrm to get the description of the error. See error code for more details.