Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1124

Nonspecific schema error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.1, 2.8.0, 2.8.1, 2.9.0, 2.9.1
    • 2.10.0
    • None

    Description

      The following error message recently popped out of Xerces:

      [Warning] :5:2: schema_reference.4: Failed to read schema document
      'cml0.xsd', because 1) could not find the document; 2) the document
      could not be read; 3) the root element of the document is not <xsd:schema>.

      This is unhelpful. The reason the reading failed is either 1, or 2, or 3. Xerces should distinguish all three cases and only use the error message that reflects the actual problem.

      Grepping the source this string appears in XMLSchemaMessages.properties. I'm not sure where in the Java code the distinction needs to be made.

      Attachments

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            elharo@metalab.unc.edu elharo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.25h
                0.25h