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

getWholeText may be incorrectly implemented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.1.3, 3.1.4
    • None
    • DOM
    • None
    • Xerces-C++ version: 3.1

      Platform: Linux x86_64

      OS: Ubuntu 16.04

      Binary distribution
      (sudo apt install libxerces-c-dev)

    Description

      When there is a space between two tags then the first tag text shows up twice when traversing the DOM.

      Example XML:

      <text><u>one</u> <i>two</i></text>

      When traversing the DOM the text "one" shows up twice.

      Sample output:

      <text>
      <u>
      [one ]
      </u>
      [one ]
      <i>
      [two]
      </i>
      </text>

      When you delete the space between the two tags the problem no longer happens.

       

      Attachments

        1. example.xml
          0.0 kB
          Miguel Provencio
        2. main.cpp
          3 kB
          Miguel Provencio

        Activity

          People

            Unassigned Unassigned
            Koloth1 Miguel Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: