Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-485

Whitespace is not stripped if text starts on byte 90112 or higher

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • Version 2.5
    • Version 5.0.1
    • Cursor
    • Linux amd64

    Description

      (I ve used XmlOptions.setLoadStripWhitespace() option)

      If the text of an element starts on byte 90112 of the document, and there is whitespace before it, then the whitespace before it is not fully trimmed. There is one space left. If the text starts on 90113 there are two spaces left, and so on.

      • This happens if the parent element has closed before byte 90112 followed by some whitepsace and text.
      • It happens with with plain text but also with CDATA.
      • It occurs also on byte: 90112*2, 90112*3 and so on

      Attachments

        1. XmlBeansBugReprod-485.zip
          2.23 MB
          johan jarkovic

        Activity

          People

            kiwiwings Andreas Beeker
            open_johan johan jarkovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: