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

[configuration] Implement Java 5.0 XML properties

    XMLWordPrintableJSON

    Details

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

      Operating System: All
      Platform: All

    • Bugzilla Id:
      32318

      Description

      Starting with the JDK 1.5 the java.util.Properties class supports a new XML format:

      http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#loadFromXML(java.io.InputStream)

      An XML properties file looks like this:

      <?xml version="1.0"?>
      <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
      <properties>
      <comment>Description of the property list</comment>
      <entry key="key1">value1</entry>
      <entry key="key2">value2</entry>
      <entry key="key3">value3</entry>
      </properties>

      This could be implemented as an XMLPropertiesConfiguration class, or as a
      modification of XMLConfiguration or PropertiesConfiguration with a switch on the
      loading mechanism when the DOCTYPE is detected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ebourg Emmanuel Bourg
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: