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

[configuration] Implement Java 5.0 XML properties

    XMLWordPrintableJSON

Details

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

    • 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

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

              Dates

                Created:
                Updated:
                Resolved: