Qt6 complains: QDomDocument called with unopened QIODevice. This will not be supported in future Qt versions.