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

XMLConfiguration and attributes on the root node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None
    • None

    Description

      With XMLConfiguration it is not possible to change the value of an attribute of the root element.

      New attributes on the root level can be created, e.g.:

      XMLConfiguration config = new XMLConfiguration();
      config.addProperty("[@test]", "true");

      would create a new "test" attribute of the root element. However if this configuration is saved and loaded again, a

      config.setProperty("[@test]", "false");

      only temporarily changes the value: getProperty() returns the new value, but when the configuration is saved, the old value is written.

      Attachments

        Activity

          People

            oheger Oliver Heger
            oheger Oliver Heger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: