Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-824

Date validation is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • None
    • Operating System: Windows XP
      Platform: PC
    • 17427

    Description

      Using DOMBuilder::parseURI to parse an XML file with a valid schema (according
      to xsv) I get the folloing error message in my error file:
      Datatype error: Type:InvalidDatatypeValueException, Message:Value '
      2000-01-01
      ' is not in enumeration .

      The element type is an xsd:date. I belive the date to be valid. This error
      did not occur in version 1.6 using DOMParser::parse using the same XML file and
      schema.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--TestXsdDate.cpp
          2 kB
          Daniel Lindberg
        2. ASF.LICENSE.NOT.GRANTED--TestXsdDate.cpp
          2 kB
          Daniel Lindberg
        3. ASF.LICENSE.NOT.GRANTED--TestXsdDate.xml
          0.4 kB
          Daniel Lindberg
        4. ASF.LICENSE.NOT.GRANTED--TestXsdDate.xsd
          0.9 kB
          Daniel Lindberg
        5. ASF.LICENSE.NOT.GRANTED--TestXsdEnum.xml
          0.4 kB
          Daniel Lindberg
        6. ASF.LICENSE.NOT.GRANTED--TestXsdEnum.xsd
          0.8 kB
          Daniel Lindberg
        7. ASF.LICENSE.NOT.GRANTED--XMLErrorHandler.cpp
          3 kB
          Daniel Lindberg
        8. ASF.LICENSE.NOT.GRANTED--XMLErrorHandler.h
          1.0 kB
          Daniel Lindberg

        Activity

          People

            Unassigned Unassigned
            dlindbe@bellsouth.net Daniel Lindberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: