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

XSD Schema validation problems

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.6.3
    • XML: QtXmlPatterns
    • None
    • f3f95d4282ffbfb307e98d20a166ced4cc982061

    Description

      Validation of the attached XML file will fail when validating it against the attached .xsd file using the qtversion/examples/xmlpatterns/schema example.

      The type that fails is defined by regular expression.

      The problematic line is the following in the xml file:

      <START_DATE>2009-12-16T23:14:10.823218Z</START_DATE>

      validated against the following type in the xsd file:

      <xsd:simpleType name="AN_UTC_MICROSEC_DATE_TIME">
      <xsd:annotation>
      <xsd:documentation>An UTC date-time value with a precision of one microsecond</xsd:documentation>
      </xsd:annotation>
      <xsd:restriction base="xsd:dateTime">
      <xsd:pattern value="\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\d\d\d\dZ"/>
      </xsd:restriction>
      </xsd:simpleType>

      Attachments

        1. bug_astrium.xml
          0.4 kB
        2. bug_astrium.xsd
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            naevdal Sigrid Fjell Nævdal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes