56 |
56 |
57 @param tag name of the unexpected tag (string) |
57 @param tag name of the unexpected tag (string) |
58 """ |
58 """ |
59 self.raiseError(QCoreApplication.translate("XMLStreamReaderBase", |
59 self.raiseError(QCoreApplication.translate("XMLStreamReaderBase", |
60 "Unexpected start tag '{0}'.".format(tag))) |
60 "Unexpected start tag '{0}'.".format(tag))) |
|
61 |
|
62 def raiseUnsupportedFormatVersion(self, version): |
|
63 """ |
|
64 Public method to raise an error for an unsupported file format version. |
|
65 |
|
66 @param version unsupported version (string) |
|
67 """ |
|
68 self.raiseError(QCoreApplication.translate("XMLStreamReaderBase", |
|
69 "File format version '{0}' is not supported.".format(version))) |
61 |
70 |
62 def readXML(self): |
71 def readXML(self): |
63 """ |
72 """ |
64 Public method to read and parse the XML document. |
73 Public method to read and parse the XML document. |
65 """ |
74 """ |