xml.DomDocument.getErrorsCount

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

Syntax

getErrorsCount()
  RETURNING count INTEGER

Usage

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

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

CAUTION:
Not part of W3C API

Example

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 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.