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

toString() and xmlText() break when "<\" appears at specific position with a &amp; in the value of the tag.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • XmlObject
    • None
    • Windows, Unix, JAVA.

    Description

      I am trying to convert a an XMLObject to a String. I tried using both the toString() and xmltext() methods. They work fine in most of the cases, but it seems they garble up the xml when converting to String when certain conditions are met. The conditions are:

      • the closing tag ("<\" ) starts right after the 131072(i.e.,128K) character
      • the text value preceding the "<\" characters has a special character such as &
      • there are more than 3 characters between the special character and the closing tag.
        If these conditions are met, then the text 3 characters after the special character, till teh closing tag "<\" is overlayed at the start of the string..

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sda Sweta Dhanuka

            Dates

              Created:
              Updated:

              Issue deployment