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 &lt; 1000"/>
<entry>
<key="sql"/>
<value="value="<![CDATA[ select id from user where salary < 1000 ]]>"/>
</entry>
I would let the old option available, just add this possibility.
(Incident Review ID: 200146)
======================================================================
###@###.### 11/3/04 20:41 GMT
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 &lt; 1000"/>
<entry>
<key="sql"/>
<value="value="<![CDATA[ select id from user where salary < 1000 ]]>"/>
</entry>
I would let the old option available, just add this possibility.
(Incident Review ID: 200146)
======================================================================
###@###.### 11/3/04 20:41 GMT