Removed qDebug and unnecessary check for empty value from XML attribute