10 while (!reader.atEnd()) {
12 if (reader.hasError()) {
13 fatalError(reader.lineNumber(), reader.columnNumber(), reader.errorString());
17 switch (reader.tokenType()) {
18 case QXmlStreamReader::StartElement:
19 if (!startElement(reader.namespaceUri(), reader.name(), reader.qualifiedName(),
20 reader.attributes())) {
24 case QXmlStreamReader::EndElement:
25 if (!endElement(reader.namespaceUri(), reader.name(), reader.qualifiedName())) {
29 case QXmlStreamReader::Characters:
30 if (reportWhitespaceOnlyData
31 || (!reader.isWhitespace() && !reader.text().toString().trimmed().isEmpty())) {
32 if (!characters(reader.text()))
40 if (reader.isEndDocument() && !endDocument())