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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 31130

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: