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?



  • This was posted at the wrong forums, my apologies (first post here). Please move to the Qt Forum if possible.


Log in to reply
 

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