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

Xercex C++ 2.6.0. sample program PSVIWriter fails to validate a valid W3C XML schema and instance.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.6.0
    • None
    • None
    • Linux Fedora Core 2 (i386 pentium III), Xerces C++

    Description

      The file 'tgmtest.xml' fails to validate against 'tgmtest.xsd' the sample
      program from xerces c++ (2.6.0):

      % PSVIWriter -f -o=stdout -e=stderr tgmtest.xml
      % head -2 stderr
      Error at file /disk2/local2/src/xerces-c-src_2_6_0/bin/tgmtest.xsd, \
      Line 94, Char 43
      Message:The type 'xs:anyType' specified as the base in the simpleContent\
      element must not have complexContent

      But running the same set against xmllint (from version 20608) works:

      % xmllint --schema tgmtest.xsd tgmtest.xml > t
      tgmtest.xml validates

      A similar bug was found in the jira bug database: XERCESC-697.

      Attachments

        1. tgmtest.xml
          1 kB
          Tom Browder
        2. tgmtest.xsd
          9 kB
          Tom Browder

        Activity

          People

            Unassigned Unassigned
            tom.browder@fwb.srs.com Tom Browder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: