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.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • Version 5.1.0
    • 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

        1. Test.xml
          128 kB
          Sweta Dhanuka

        Activity

          People

            Unassigned Unassigned
            sda Sweta Dhanuka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: