Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.7.1
-
WindowsXP SP3
Description
QXmlSchema:
First of all, if xml schema files have includes inside (for example: <xsd:include schemaLocation="complex_types.xsd"/>) you can't use QXmlSchema::load() with QByteArray as argument - it obviously will not parse includes.
But in case of using QXmlSchema::load(const QUrl &source), if schema itself is invalid, MessageHandler return incorrect line and column of the error, In this case where is no instance of full XML schema, and no simple way to get it. Maybe we need to have some method to export XML Schema to a QString or something.
In attachments example of incorrect xml schema which could be used with Qt Schema example.