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 tag:trolltech.com,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?