The DomDocument class / xml.DomDocument methods |
Returns the number of errors encountered during the loading, saving or validation of an XML document.
getErrorsCount() RETURNING count INTEGER
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.
FOR i=1 TO doc.getErrorsCount() DISPLAY "[", i, "] ", doc.getErrorDescription(i) END FORDisplays 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.