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

Wrong error message on invalid schema

    XMLWordPrintableJSON

Details

    Description

      In our project we are using SAX2 parsing. We recently upgraded to Xerces-C 3.2.0 and now we get misleading error messages when the schema is unknown. A file with the following content

      <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/blub_file.xsd"/>

      used to generate the message

      Error: unable to open file 'http://sumo.dlr.de/xsd/blub_file.xsd'
      In file 'input_routes.rou.xml'
      At line/column 1/0.

      Now it says:
      Error: whitespace expected
      In file 'input_routes.rou.xml'
      At line/column 2/50.

      The strange thing is that it fails only on Linux (ubuntu 16.04) and it used to work with version 3.1.3

      I did the build for Xerces-C 3.2.0 manually using the standard configure, make, sudo make install process

      Attachments

        Activity

          People

            Unassigned Unassigned
            behrisch Michael Behrisch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: