Parse error does not set XMLListModel.status as XmlListModel.Error

  • I am loading a bad XML into a XMLListModel and although I get an error displayed at the console (“Error FODC0002 in,2007:QtXmlPatterns:QIODeviceVariable:src, at line 12, column 22: Opening and ending tag mismatch.”), the status property reads “XmlListModel.Ready”, with a count of zero elements in the model. Is this standard behaviour? I expected to find the status as “XmlListModel.Error”, and the error message available throught the errorString method.

    Is there any way to know at run time that the loaded XML does not parse correctly?

  • I think it's a bug. What is the version you are getting this error?

  • I am using the latest, Qt 5.1.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.