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

SAX Parser truncates the data on the left side of &(ampersand)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.4.0
    • None
    • SAX/SAX2
    • None
    • Tandem S series, c89 c++ compiler, Xercesc 2.4.0

    Description

      My input XML file is
      ===============
      <?xml version ="1.0" ?>
      <myservice>
      <mystring>123>ABCDEF</mystring>
      </myservice>

      Output should contain 123>ABCDEF but it contains >ABCDEF.

      Analysis :
      =======
      While parsing XML file the parser hits parser->parseNext(token) it reinitializes the value of toUse->findex.
      findex is the index of the XML buffer.
      So it overwrites the contents of the buffer.

      For checking this I have used "PParse".

      Attachments

        Activity

          People

            Unassigned Unassigned
            baxirinil Rinil Baxi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: