XMLReader.ErrorCode

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aXMLReader.ErrorCode

Supported for all project types and targets.

The last error code.