if (!xmlFile.open(QIODevice.OpenModeFlag.ReadOnly)) {
lastError = 16;
errorMessage = "Cannot open file.";
}
reader = new QXmlStreamReader(xmlFile);
while (!reader.atEnd()) {
reader.readNext();
if (reader.hasError()) {
errorMessage = reader.errorString();
logger.log(logger.LOW, "************************* ERROR READING BACKUP " +reader.errorString());