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

Xerces includes extra data from comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 2.6.1
    • None
    • SAX
    • None
    • Operating System: Other
      Platform: Other
    • 27145

    Description

      When processing the test case ibm09v05.xml, Xerces-J passes the data form the
      comment to the characters method:

      That is the output looks like this

      This is a test of My Name is first , last , middle and my age is 21 testing
      entity value with combination reference Again first , last , middle first ,
      last , middle and my status is \n\t\tfreshman freshman and first , last , middle
      21 first , last , middle freshman That is all.</characters>

      The text, "testing entity value with combination reference" comes from the
      preceding comment.

      This bug does not appear when the document is parsed in isolation. It seems to
      require parser reuse. I am not yet sure which other document in the test suite
      kicks the parser into the incorrect state whihc is then exposed on parsing a
      later document.

      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: