Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4912045

(prefs) move attributes to separate tags

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • Fix Understood
    • x86
    • linux

      Name: rmT116609 Date: 08/25/2003


      A DESCRIPTION OF THE REQUEST :
      I'd like to see refactoring of java.utils.prefs DTD. Currently entry has following syntax:

      <entry key="key" value="value"/>

      I'd like to be this syntax available too:

      <entry>
       <key="key"/>
       <value="value=""/>
      </entry>




      JUSTIFICATION :
      Why? Because it is not possible to put CDATA or entity into value of attribute! If my value contains < character (lower than), I have to escape it. This makes the XML unreadable and hard to maintain. I use prefs to configure my portal including SQL commands, so you can imagine, that this would be helpful.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Compare these two choices, which would you prefer?

      <entry key="sql" value="select id from user where salary < 1000"/>

      <entry>
       <key="sql"/>
       &lt;value="value="<![CDATA[ select id from user where salary &lt; 1000 ]]>"/>
      &lt;/entry>

      I would let the old option available, just add this possibility.
      (Incident Review ID: 200146)
      ======================================================================
      ###@###.### 11/3/04 20:41 GMT

            sherman Xueming Shen
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: