Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
QXmlSchemaValidator is used to validate the file against the schema. QDomDocument is used to load the file into the DOM tree.
So, to validate and create DOM the file should be parsed twice.
Is it possible to limit the file parsing only to one parse?
As far as I know: no.
[quote author="Andre" date="1291464828"]As far as I know: no.[/quote]
I expected this answer. Sadly. Thanks :)
yes, data parsing cannot be limited to only one parse. However you can avoid reading a file twice, since both classes work with QByteArray as data