Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-769

commons configuration addProperty method replaces < > with &lt &gt

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Format
    • Labels:
      None

      Description

      I am using latest Apache commons configuration 2 version 2.6 and when trying to invoke addProperty it replaces < > with &lt &gt.

      example :
      cfg.addProperty("data.array(0).var(0)",  "<var name=myds1>" );
      cfg.write(new FileWriter(this.XmlFile));

      Here cfg is XMLConfiguration Object

      The resulting xml is :
       {{ <var><var name=myds1></var>}}
      Expected is :
       {{ "<var name=myds1>"}}
       
       
       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              djha10 Deepraj jha
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: