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

Too much malformed data is reported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.6.1
    • None
    • SAX
    • None
    • Operating System: All
      Platform: All
    • 27081

    Description

      Consider the following malformed test case from the W3C XML conformance test
      suite <xmltest/not-wf/sa/027.xml.html>:

      <doc>
      <!-- abc
      </doc>

      When processing this document with SAX, Xerces reports the content of the
      malformed comment by invoking the characters method. That is, it reports <!--
      abc as character data. There is no possible way anything later in the file could
      change this into character data. Thus there is no way for the parser to think
      that this is well-formed character data. Xerces should report a fatal error and
      not report the <!-- abc as content.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elharo@metalab.unc.edu elharo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: