Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16421

Multiple issues with XML Schema includes.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.7.1
    • XML: QtXmlPatterns
    • 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.

      Attachments

        1. complex_types.xsd
          0.8 kB
        2. contact.xsd
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            juvuolle Juha Vuolle (closed Nokia identity) (Inactive)
            d953i divashin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes