Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-187

[configuration] Add save() method and comment handling to HierarchicalXMLConfiguration

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      With this patch new save() methods are added to HierarchicalXMLConfiguration,
      which allow to save XML documents into a specified File or Writer.

      Further comments are now handled, i.e. they are read from the source file,
      stored in the internal node structure and are written to file in the save() method.

      I still hope that HierarchicalXMLConfiguration can once replace
      XMLConfiguration. This patch should be a step forward in this direction. What is
      missing are processing instructions and comments that appear before the root
      element in the XML file; these get lost.

      Oliver

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Oliver Heger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development