(prefs) move attributes to separate tags

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 1.4.2
    • Component/s: 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

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

              Created:
              Updated:
              Imported:
              Indexed: