Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.8, 5.9, 5.10
-
None
-
* Ubuntu 14 (Mint 17)
* Windows 10
Description
source.xml
<document> <title>this is a document</title> <content> <div> </div> </content> </document>
main.cpp
#include <QtCore/QCoreApplication> #include <QFile> #include <QtXmlPatterns/QXmlQuery> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); Qfile file("source.xml"); file.open(QIODevice::ReadOnly); QXmlQuery query; query.setFocus(&file); query.setQuery("document/content"); QString result; qDebug() << result; }
Expected output
<div> </div>
Actual output
<div />