Perhaps you could give an example of your input?
As an example, I get
"tag mismatch" at line: 4 col: 10
"tag mismatch" at line: 4 col: 10
To copy to clipboard, switch view to plain text mode
when I run this:
#include <QtGui>
#include <QtXml>
int main(int argc, char *argv[])
{
int line, col;
textEdit.append("<stuff>");
textEdit.append(" <testing>");
textEdit.append(" blaa... ");
textEdit.append(" </tstng>");
textEdit.append("</stuff>");
textEdit.show();
if(!domDoc.setContent(textEdit.toPlainText(), &error, &line, &col))
qDebug() << error << "at line: " << line << "col: " << col;
return app.exec();
}
#include <QtGui>
#include <QtXml>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QTextEdit textEdit;
QDomDocument domDoc;
QString error;
int line, col;
textEdit.append("<stuff>");
textEdit.append(" <testing>");
textEdit.append(" blaa... ");
textEdit.append(" </tstng>");
textEdit.append("</stuff>");
textEdit.show();
if(!domDoc.setContent(textEdit.toPlainText(), &error, &line, &col))
qDebug() << error << "at line: " << line << "col: " << col;
return app.exec();
}
To copy to clipboard, switch view to plain text mode
[edit] Sorry, misunderstood the question, which was about schemas, not parsing.
Bookmarks