https://bugs.kde.org/show_bug.cgi?id=394853
--- Comment #6 from Carsten Grohmann <carstengrohm...@gmx.de> --- I had printed an example from the above mentioned thread and typed it in again. With it the problem can be shown well: #include <QString> #include <QDomDocument> #include <QDomElement> #include <QXmlInputSource> #include <QDebug> int main() { QString xmlString("<original> </original>"); QDomDocument doc; doc.setContent(xmlString); QDomElement docElem = doc.documentElement(); qDebug() << "Without QXmlSimpleReader \t- element contains" << docElem.text() << "\tlength=" << docElem.text().length(); doc.clear(); QXmlInputSource source; source.setData(xmlString); QXmlSimpleReader reader; doc.setContent(&source, &reader); docElem = doc.documentElement(); qDebug() << "With QXmlSimpleReader \t- element contains" << docElem.text() << "\tlength=" << docElem.text().length(); } The program output: $ ./qxmltest Without QXmlSimpleReader - element contains "" length= 0 With QXmlSimpleReader - element contains " " length= 6 -- You are receiving this mail because: You are watching all bug changes.