QXmlStreamReader reader(&file)
if(reader.name() =="title")
{
ui->textBrowser->append(QString("title:%1").arg(reader.readElementText()));
ui->textBrowser->append(QString("").arg("***************************"));
}
<article mdate="2017-06-08" key="tr/ibm/LILOG19" publtype="informal">
<author>Mohammed Nadjib Khenkhar</author>
<title>Vorüberlegungen zur depiktionalen Repräsentation räumlichen Wissens</title>
<journal>LILOG-Report</journal>
<volume>19</volume>
<year>1988</year>
<publisher>IBM Deutschland GmbH</publisher>
</article>
<article mdate="2017-06-08" key="tr/ibm/IWBS135" publtype="informal">
<author>Sitaram Lanka</author>
<author>Eric Mays</author>
**<title>Fully Persistent B<sup>+</sup>-trees</title>**
<journal>IWBS Report</journal>
<volume>135</volume>
<year>1990</year>
<publisher>IBM Germany Science Center, Institute for Knowledge Based Systems</publisher>
</article>
<article mdate="2017-06-08" key="tr/ibm/LILOG11" publtype="informal">
<author>Petra Maier</author>
<title>Der modale Infinitiv: Syntaktische oder lexikalische Beschreibung?</title>
<journal>LILOG-Report</journal>
<volume>11</volume>
<year>1987</year>
<publisher>IBM Deutschland GmbH</publisher>
</article>
就变成了sup,所以这是出错了吧,因为不能继续读取下一个title了,只能读到这一个sup这里。