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

XmlSchema incorrectly allows text in schema file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 4.6.2
    • XML: QtXmlPatterns
    • Windows XP, qt-sdk-4.6.2

    Description

      If there is a simple (cdata) text in schema file,
      QXmlSchema does not report an error

      while for example:
      http://www.w3.org/2001/03/webdata/xsv says:

      Schema validating with XSV 3.1-1 of 2007/12/11 16:20:05

      • Target: file:/usr/local/XSV/xsvlog/tmpjeHc8Juploaded
        (Real name: schema.xsd)
      • docElt: {http://www.w3.org/2001/XMLSchema}

        schema

      • Validation was strict, starting with type [Anonymous]
      • The schema(s) used for schema-validation had
        no errors
      • 1 schema-validity problem was found in the target

      Problems with the schema-validity of the target

      file:/usr/local/XSV/xsvlog/tmpjeHc8Juploaded:1:40: Invalid per cvc-complex-type.1.2.3: text not allowed: | some cdata text |

      In attachment schema file that is invalid, but QXmlSchema says it is ok, and main.cpp with sample validation

      Attachments

        1. main.cpp
          2 kB
        2. schema.xsd
          0.8 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)
            grzechu81 Grzegorz Wolszczak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes