[solved]Xml Schema and QDom
-
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