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

Saver.java does not properly convert the Greater Than (>) to > when it is contains inside an element or attribute.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Version 2
    • Version 2.1
    • None
    • None
    • Windows XP

    Description

      Saver.java does not properly convert the Greater Than (>) sign to > when it is contains inside an element or attribute. However it seems to correctly convert the &, < symbols correctly.

      For example if have following fragment of input XML:

      <FareDisplayOptions>
      <PF2 PF2Ind="<>" PF3Allow="<>" PF3Rule="<>"
      </PF2>
      </FareDisplayOptions>

      It gets converted to: (Notice that the < gets converted correclty, but the > does not)

      <FareDisplayOptions>
      <PF2 PF2Ind="<>" PF3Allow="<>" PF3Rule="<>"
      </PF2>
      </FareDisplayOptions>

      Attachments

        1. xmlbeans177-input2.xml
          0.6 kB
          Wing Yew Poon
        2. CharEscapeBug.java
          0.7 kB
          Wing Yew Poon

        Activity

          People

            ljones Lawrence Aston Jones
            stevexx Stephen Cole
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: