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

Problems with QXmlSchema. load() function returns a "true" if the size of schema file up to 135 kB.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • Some future release
    • 4.7.1
    • XML: QtXmlPatterns
    • MS Windows 7 Rus, Qt libraries 4.7.1 for Windows minGW 4.4 (LGPL), Qt Creator 2.1 RC1. Previously, I tested this code with Qt SDK for Windows 2010.5 (LGPL).

    Description

      Hello!

      Discovered some regularity when working with QXmlSchema (schema.load): this function returns a "true" if the size of schema file up to 135 kB. Tested various schemes from the program's directories Microsoft and Autodesk.

      I used this code:

      QString str =
      QFileDialog::getOpenFileName(this,"Import LandXML Schema","","*.xsd");
      QFile schemaFile(str);
      schemaFile.open(QIODevice::ReadOnly);

      QXmlSchema schema;

      if (schema.load(&schemaFile, QUrl::fromLocalFile(schemaFile.fileName())) == true)
      qDebug("schema is valid");
      else
      qDebug("schema is invalid");

      Sorry if I'm wrong.

      Attachments

        1. LandXML-1.2.xsd
          221 kB
          Sergey A. Makarov
        2. Schemas.zip
          223 kB
          Sergey A. Makarov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            trofimov Dmitry Trofimov
            sergey.makarov Sergey A. Makarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes